3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test($v1,$v2){ if($v1["id"]===$v2["id"]) return 0; else return -1; } $array2=NULL; $array=array( array("id"=>1,"data"=>1), array("id"=>1,"data"=>2), array("id"=>1,"data"=>3), array("id"=>3,"data"=>5), array("id"=>8,"data"=>1), array("id"=>10,"data"=>10) ); print_r(array_udiff_assoc($array, $array, null,'test'));
Output for 5.0.0 - 5.2.4, 5.2.7 - 5.6.28, 7.0.0 - 7.1.0
Warning: array_udiff_assoc(): Argument #3 is not an array in /in/H39LI on line 16
Output for 5.2.5 - 5.2.6, hhvm-3.10.0 - 3.12.0
Array ( )
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_udiff_assoc() in /in/H39LI on line 16
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_udiff_assoc() in /in/H39LI on line 16
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_udiff_assoc() in /in/H39LI on line 16