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) { continue; } goto a; } finally { echo "Finally!\n"; }
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.6
Fatal error: 'continue' not in the 'loop' or 'switch' context in /in/ubOuA on line 10
Process exited with code 255.

preferences:
171.67 ms | 1395 KiB | 35 Q