3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function myfunction($v1,$v2) { if ($v1===$v2) { return 0; } return 1; } $a1=array(1, 2, 4); $a2=array(1, 3, 4); print_r(array_uintersect($a1,$a2,"myfunction"));
Output for 7.0.0 - 7.2.0
Array ( )
Output for 5.3.21 - 5.6.28
Array ( [0] => 1 )