in reply to Re (VSarkiss)2: Optimizations and Efficiency
in thread Optimizations and Efficiency

For further fun try:

# Method 3a: the vaguely Mathematica-ish way $sum = 0 + join('+', N..M);
which generates different results, on my machine anyway.

One ought to also compare push, pop, shift, and unshift as well as while, for, foreach, do, and, shudder, a hand crafted LABEL loop.