Result: DiscardedThe test labeled "commas" was the faster by 0.0389 seconds, (3.058% faster)
The commas test took 1.2316 seconds.
The concat test took 1.2705 seconds.
Each test case ran 20 random code order iterations consisting of 268,779 loops for a total of 5,375,580 runs.
- Line execution difference (0.000007) milliseconds.
- Avg difference (1.943) milliseconds per 268,779 loops.
- Total difference 38.86 milliseconds for 5,375,580 loops
The iteration variablity for Code 1 was (7.9139) milliseconds and Code 2 was (13.7871) milliseconds. The lower and the closer together there values are the more accurate the results are.
The first test, "commas", was:
echo $GLOBALS['x'], ' test ', $GLOBALS['y'], $GLOBALS['z'], ' test ';
The second test, "concat", was:
echo $GLOBALS['x'] . ' test ' . $GLOBALS['y'] . $GLOBALS['z'] . ' test ';