3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php set_time_limit(1); sleep(2); echo 123; register_shutdown_function(function(){ sleep(2); echo time()-$_REQUEST["REQUEST_TIME"]; });
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
123
Process exited with code 137.
Output for hhvm-3.10.0 - 3.12.0
123 Fatal error: Maximum execution time of 1 seconds exceeded in /in/7AVOl on line 8 Notice: Undefined index: REQUEST_TIME in /in/7AVOl on line 7 1413472905 Fatal error: Maximum execution time of 1 seconds exceeded in /in/7AVOl on line 8
Process exited with code 255.