3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array( 'uid' => 2, 'firstname' => 'Test' ); $b = array( 'uid' => 2, 'firstname' => 'Test' ); var_dump(array_unique($a,$b));
Output for 7.0.0 - 7.2.0
Warning: array_unique() expects parameter 2 to be integer, array given in /in/XoOMc on line 11 NULL
Output for 5.3.20 - 5.6.21
Warning: array_unique() expects parameter 2 to be long, array given in /in/XoOMc on line 11 NULL