- 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.
<?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";
}