3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function myfunction_key($a,$b) { if ($a===$b) { return 0; } return ($a>$b)?1:-1; } function myfunction_value($a,$b) { if ($a===$b) { return 0; } return ($a>$b)?1:-1; } $a1=array("a"=>"red","b"=>"green","c"=>"blue"); $a2=array("a"=>"red","b"=>"green","c"=>"green"); $result=array_udiff_uassoc($a1,$a2,"myfunction_value"); print_r($result);
based on h5DMS
Output for 5.3.0 - 7.1.0
Warning: array_udiff_uassoc(): at least 4 parameters are required, 3 given in /in/5LgDj on line 23
Output for 5.0.0 - 5.2.17
Warning: Wrong parameter count for array_udiff_uassoc() in /in/5LgDj on line 23
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_udiff_uassoc() in /in/5LgDj on line 23
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_udiff_uassoc() in /in/5LgDj on line 23
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_udiff_uassoc() in /in/5LgDj on line 23