3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $color=array(“red”,”yellow”,”white”); $x=in_array(“black”,$color); if($x==0) echo “good bye”; if($x==1) echo “Hello”;
Output for 5.4.0 - 5.4.26
Parse error: syntax error, unexpected 'bye”' (T_STRING), expecting ',' or ';' in /in/qjIAv on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/qjIAv on line 6
Process exited with code 255.