3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 0; $i < 10; $i++) { try { echo $i, PHP_EOL; throw new RuntimeException(':/'); } catch (\Throwable $e) { echo 'Exception caught.', PHP_EOL; continue; } }
Output for git.master, git.master_jit, rfc.property-hooks
0 Exception caught. 1 Exception caught. 2 Exception caught. 3 Exception caught. 4 Exception caught. 5 Exception caught. 6 Exception caught. 7 Exception caught. 8 Exception caught. 9 Exception caught.

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:
169.6 ms | 406 KiB | 5 Q