3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tries = 0; try { a: $tries++; throw new \Exception(sprintf('Tried %d time(s)', $tries)); } catch(\Exception $exception) { echo $exception->getMessage() . "\n"; if($tries > 4) { goto b; } goto a; } b: echo 'Finished\n';
Output for git.master, git.master_jit, rfc.property-hooks
Tried 1 time(s) Tried 2 time(s) Tried 3 time(s) Tried 4 time(s) Tried 5 time(s) Finished\n

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:
63.28 ms | 401 KiB | 8 Q