3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = microtime(true); $i = 100000000; while ($i-- > 0) { if (false) {} elseif (true) {} } $time1 = microtime(true) - $time; unset($i); unset($time); $time = microtime(true); $i = 100000000; while ($i-- > 0) { if (false) {} else if (true) {} } $time2 = microtime(true) - $time; echo $time1." ".$time2;
Output for 7.2.0
0.8426821231842 0.81037211418152
Output for 7.1.7
0.96297788619995 0.95337796211243
Output for 7.1.6
1.006618976593 0.90640902519226
Output for 7.1.5
0.9668869972229 0.89917087554932
Output for 7.1.0
1.0359752178192 -0.85753917694092
Output for 7.0.20
1.0399839878082 1.02401304245
Output for 7.0.14
-0.65616989135742 1.166316986084
Output for 7.0.8
0.945876121521 0.75498008728027
Output for 7.0.7
0.82766199111938 0.75210905075073
Output for 7.0.6
0.95314121246338 0.81376600265503
Output for 7.0.5
1.011125087738 0.81491684913635
Output for 7.0.4
0.83743619918823 0.88988780975342
Output for 7.0.3
0.87519288063049 0.7437059879303
Output for 7.0.2
0.97292804718018 0.79755115509033
Output for 7.0.1
0.93567085266113 0.81646013259888
Output for 7.0.0
0.85148906707764 0.79513692855835
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.37, 5.6.0 - 5.6.28

Process exited with code 137.

preferences:
164.26 ms | 403 KiB | 211 Q