3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php$h=rand(1,7) switch ($h){ case 1: echo "yo dog"; break; case 2: echo "you are stupid"; break; case 3: case 4: echo " YOU ARE AWESOME"; break; case 5: case 6: case 7: echo " YOU SUCK" break;
Output for 5.4.34
Parse error: syntax error, unexpected '$h' (T_VARIABLE) in /in/1spBI on line 1
Process exited with code 255.
Output for 5.4.0 - 5.4.32
<?php$h=rand(1,7) switch ($h){ case 1: echo "yo dog"; break; case 2: echo "you are stupid"; break; case 3: case 4: echo " YOU ARE AWESOME"; break; case 5: case 6: case 7: echo " YOU SUCK" break;