3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = [1 => '1', 'a' => 2]; $b = [1 => 1 'a' => 3]; var_dump(array_diff_assoc($a, $b));
Output for 5.4.0 - 5.4.22
Parse error: syntax error, unexpected ''a'' (T_CONSTANT_ENCAPSED_STRING), expecting ']' in /in/udUgW on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected '[' in /in/udUgW on line 3
Process exited with code 255.