3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php If (100>55) EchO "my php Program 1" ; Else echo "my php program 2" ; // second program lets step it up a notch ; $var1 = 100 $var2 = 50 $total = ($var1 + $var2) if ($total > 95) Echo "kendi coding like a n00b" ; else echo "kendi coding like a novice" ; ?>
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '$var2' (T_VARIABLE) in /in/f8a5F on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/f8a5F on line 7
Process exited with code 255.