3v4l.org

run code in 300+ PHP versions simultaneously
<?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";
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.25, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.6
this will trigger the timeoutrunning for about 2 seconds
Process exited with code 137.

preferences:
123.54 ms | 402 KiB | 133 Q