3v4l.org

run code in 150+ 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 - 5.6.25, 7.0.0 - 7.1.0
this will trigger the timeoutrunning for about 2 seconds
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/JYClD on line 10 running for about 1 secondsthis will trigger the timeout again Fatal error: Maximum execution time of 1 seconds exceeded in /in/JYClD on line 7
Process exited with code 255.