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($arr1, $arr2, function($a1, $a2){ return $a1 === $a2 ? 0 : -1; }));
based on RQ7ln
Output for 7.0.0 - 7.2.0
Array ( )
Output for 5.4.10 - 5.6.28
Array ( [0] => Array ( [0] => 105 [1] => 44 [2] => 20 [3] => 0 ) [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/FUrXL on line 3
Process exited with code 255.