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) {} elseif (true) {} } $time2 = microtime(true) - $time;
Output for 5.4.0 - 5.4.9
Parse error: syntax error, unexpected '$i' (T_VARIABLE), expecting '(' in /in/tRSFA on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.19
Parse error: syntax error, unexpected T_VARIABLE, expecting '(' in /in/tRSFA on line 9
Process exited with code 255.