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";

preferences:
23.71 ms | 402 KiB | 5 Q