3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test($v1,$v2){ print $v1["id"]." ".$v2["id"]."<br/>"; return 0; } $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 - 7.1.0
Warning: array_udiff_assoc(): Argument #3 is not an array in /in/gWice on line 16
Output for 5.2.5 - 5.2.6
1 1<br/>1 1<br/>1 1<br/>3 3<br/>8 8<br/>10 10<br/>Array ( )
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_udiff_assoc() in /in/gWice 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/gWice 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/gWice on line 16