3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = time(); register_shutdown_function(function() use ($start){ sleep(2); echo time()-$start; }); set_time_limit(1); sleep(2); echo 123;
based on RYrpT
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/IQOT5 on line 9 2 Fatal error: Maximum execution time of 1 seconds exceeded in /in/IQOT5 on line 6
Process exited with code 255.