3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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; }
based on F4aCI
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.3.20 - 5.6.16
1 Fatal error: Cannot break/continue 2 levels in /in/VaWI0 on line 9
Process exited with code 255.