3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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.1.0
1.0359752178192 -0.85753917694092
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 - 5.6.28, hhvm-3.10.0 - 3.12.0

Process exited with code 137.