3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = time(); register_shutdown_function(function() use ($start){ printf("running for about %s seconds", time()-$start); sleep(2); printf("this will trigger the timeout again"); }); set_time_limit(1); sleep(2); echo "this will trigger the timeout";
based on Bjt8H
Output for 5.4.0 - 7.1.7
this will trigger the timeoutrunning for about 2 seconds
Process exited with code 137.