3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( "key1" => array(1,2,3) "key2" => 4 ); $b = array( "key2" => 4 "key1" => array(1,2,3) ); echo $a == $b;
Output for 5.5.24 - 5.5.30, 5.6.8 - 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.

preferences:
163.16 ms | 1395 KiB | 22 Q