3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr1 = [ array (105, 44, 20, 0), array (106, 44, 21, 2), array (107, 45, 20, 0), ]; $arr2 = [ array (124, 44, 20, 1), array (105, 44, 20, 0), array (107, 45, 20, 0), ]; print_R(array_uintersect($arr2, $arr1, function($a2, $a1){ return $a2 === $a1 ? 0 : -1; }));
based on 6Hvjf
Output for 7.0.0 - 7.3.0alpha1
Array ( [1] => Array ( [0] => 105 [1] => 44 [2] => 20 [3] => 0 ) )
Output for 5.4.10 - 5.6.28
Array ( [2] => Array ( [0] => 107 [1] => 45 [2] => 20 [3] => 0 ) )
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/SoZJj on line 3
Process exited with code 255.