3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $i = 2; switch($i) case 1: echo "It's about one"; case 2: echo "It's about two"; case 3: echo "it's about three"; case default: echo "not at all";
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected 'case' (T_CASE), expecting ':' or '{' in /in/KGt3V on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_CASE, expecting ':' or '{' in /in/KGt3V on line 4
Process exited with code 255.