3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = time(); register_shutdown_function(function() use ($start){ sleep(2); echo time()-$start; }); set_time_limit(1); sleep(2); echo 123;
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.6
123
Process exited with code 137.

preferences:
151.8 ms | 402 KiB | 136 Q