3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = time(); register_shutdown_function(function() use ($start){ sleep(2); printf("we are still running, for about %s seconds.", time()-$start); }); set_time_limit(1); sleep(2); echo "this will trigger the timeout";
based on IQOT5
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
this will trigger the timeout
Process exited with code 137.
Output for hhvm-3.10.0 - 3.12.0
this will trigger the timeout Fatal error: Maximum execution time of 1 seconds exceeded in /in/Bjt8H on line 9 we are still running, for about 2 seconds. Fatal error: Maximum execution time of 1 seconds exceeded in /in/Bjt8H on line 6
Process exited with code 255.