3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array( "key1" => array(1,2,3) "key2" => 4 ); $b = array( "key2" => 4 "key1" => array(1,2,3) ); echo $a == $b;
based on MdTmQ
Output for 5.4.9 - 5.6.15
Parse error: syntax error, unexpected '"key2"' (T_CONSTANT_ENCAPSED_STRING), expecting ')' in /in/46WHT on line 5
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ')' in /in/46WHT on line 5
Process exited with code 255.