3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $d=2 if ($d==3) echo "Have a nice weekend!"; elseif ($d==1) echo "Have a nice Sunday!"; else echo "Have a nice day!";
Output for 5.4.0 - 5.4.11
Parse error: syntax error, unexpected 'if' (T_IF) in /in/KTiHm on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.21
Parse error: syntax error, unexpected T_IF in /in/KTiHm on line 3
Process exited with code 255.