Result: DiscardedThe test labeled "concat" was the faster by 0.0633 seconds, (8.794% faster)
The concat test took 0.6565 seconds.
The commas test took 0.7198 seconds.
Each test case ran 20 random code order iterations consisting of 165,455 loops for a total of 3,309,100 runs.
- Line execution difference (0.000019) milliseconds.
- Avg difference (3.165) milliseconds per 165,455 loops.
- Total difference 63.30 milliseconds for 3,309,100 loops
The iteration variablity for Code 1 was (6.1491) milliseconds and Code 2 was (3.4005) 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 ';