3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 1; switch ($a) { case 1: echo " besnik "; break: case 2: echo " besnik " ; break: case 3: echo " zef"; break: case 4: echo " besnik "; break: }
based on Qf0eG
Output for 7.0.0 - 7.0.2
Parse error: syntax error, unexpected ':', expecting ';' in /in/dVEjh on line 7
Process exited with code 255.
Output for 5.3.22 - 5.6.17
Parse error: syntax error, unexpected ':' in /in/dVEjh on line 7
Process exited with code 255.