3v4l.org

run code in 300+ PHP versions simultaneously
<?php register_tick_function(function () { echo "Tick", PHP_EOL; throw new \Exception("Software interrupt"); }); declare(ticks=1) { try { $loopIndex = 0; while ($loopIndex < 1e3) { $loopIndex++; echo "Index {$loopIndex}", PHP_EOL; } } catch (\Exception $e) { echo "Received termination signal"; } }
Output for git.master, git.master_jit, rfc.property-hooks
Tick Received termination signalTick Fatal error: Uncaught Exception: Software interrupt in /in/icq81:5 Stack trace: #0 /in/icq81(17): {closure}() #1 {main} thrown in /in/icq81 on line 5
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
35.62 ms | 401 KiB | 8 Q