3v4l.org

run code in 300+ PHP versions simultaneously
<?php function callback($a, $b) { echo "\$a = $a; \$b= $b; "; echo "<br>\n"; return 0; } $array1 = array("first_0", "first_1", "first_2", "first_3", "first_4" ); $array2 = array("second_0", "second_1", "second_2", "second_3", "second_4"); $result = array_udiff($array1, $array2, "callback");

preferences:
37.38 ms | 402 KiB | 5 Q