3v4l.org

run code in 300+ PHP versions simultaneously
<?php $firstLoop = microtime(true); for ($i = 0; $i < 1000000; $i++) { $testOne = max($i, 1000000); } error_log(microtime(true) - $firstLoop); $secondLoop = microtime(true); // 1.3123650550842 for ($i = 0; $i < 1000000; $i++) { $testTwo = $i > 1000000 ? $i : 1000000; } error_log(microtime(true) - $secondLoop); // 0.090374946594238
Output for git.master
0.019343137741089 0.0079429149627686
Output for git.master_jit
0.019315004348755 0.0079379081726074

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
70.56 ms | 406 KiB | 5 Q