3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for ($i = 0; $i <= 5; $i++) { switch ($i) { case 0: echo 'case 0'; break; case 1: echo 'case 1'; continue; case 2: echo 'case 2'; continue 2; case 3: echo 'case 3'; break; case 4: echo 'case 4'; break 2; case 5: echo 'case 5'; break; } }
Output for 7.3.0beta1 - 7.3.0rc2
Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in /in/OhX6X on line 10 case 0case 1case 2case 3case 4
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0alpha1
case 0case 1case 2case 3case 4