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

preferences:
48.66 ms | 402 KiB | 5 Q