3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; switch($a) { case 1: $a = 2; echo 1; continue 2; case 2: echo 2; $a = 1; continue 2; case 3: echo 3; break; default: echo 'default'; break; }
Output for 7.0.0
Fatal error: Cannot 'continue' 2 levels in /in/VaWI0 on line 9
Process exited with code 255.
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
1 Fatal error: Cannot break/continue 2 levels in /in/VaWI0 on line 9
Process exited with code 255.

preferences:
217.38 ms | 1395 KiB | 24 Q