Result: DiscardedThe test labeled "commas" was the faster by 0.0621 seconds, (4.574% faster)
The commas test took 1.2964 seconds.
The concat test took 1.3585 seconds.
Each test case ran 20 random code order iterations consisting of 273,645 loops for a total of 5,472,900 runs.
- Line execution difference (0.000011) milliseconds.
- Avg difference (3.107) milliseconds per 273,645 loops.
- Total difference 62.14 milliseconds for 5,472,900 loops
The iteration variablity for Code 1 was (7.3663) milliseconds and Code 2 was (8.6990) 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 ';