Result: DiscardedThe test labeled "exec()" was the faster by 0.0173 seconds, (2.732% faster)
The exec() test took 0.6163 seconds.
The shell_exec() test took 0.6336 seconds.
Each test case ran 20 random code order iterations consisting of 143,431 loops for a total of 2,868,620 runs.
- Line execution difference (0.000006) milliseconds.
- Avg difference (0.865) milliseconds per 143,431 loops.
- Total difference 17.31 milliseconds for 2,868,620 loops
The iteration variablity for Code 1 was (2.1823) milliseconds and Code 2 was (1.5860) milliseconds. The lower and the closer together there values are the more accurate the results are.
The first test, "exec()", was:
The second test, "shell_exec()", was: