Result: DiscardedThe test labeled "echo" was the faster by 0.0135 seconds, (2.165% faster)
The echo test took 0.6088 seconds.
The <?php ?> test took 0.6222 seconds.
Each test case ran 20 random code order iterations consisting of 142,590 loops for a total of 2,851,800 runs.
- Line execution difference (0.000005) milliseconds.
- Avg difference (0.674) milliseconds per 142,590 loops.
- Total difference 13.47 milliseconds for 2,851,800 loops
The iteration variablity for Code 1 was (2.5700) milliseconds and Code 2 was (1.9502) milliseconds. The lower and the closer together there values are the more accurate the results are.
The first test, "echo", was:
echo $GLOBALS['x'], ' test ', $GLOBALS['y'], $GLOBALS['z'], ' test ';
The second test, "<?php ?>", was:
echo $GLOBALS['x']; ?> test <?php echo $GLOBALS['y'], $GLOBALS['z'];?> test <?php