3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $input=$_GET["input"]; switch($3) { case 1: case 2: case 3: case 4: echo "Inputan kurang dari 5 "; case 5: echo "Inputan adalah 5 "; break; default: echo "Inputan Salah "; }
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '3' (T_LNUMBER), expecting variable (T_VARIABLE) or '$' in /in/6ckCD on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /in/6ckCD on line 3
Process exited with code 255.