3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ ["module1", "path/to/file.txt", ""], ["module2", "path/to/file2.txt", ""], ]; $array2 = [ ["module1", "path/to/file.txt", ""] ]; var_export( array_udiff($array1, $array2, fn($a, $b) => $a <=> $b) );

preferences:
25.26 ms | 405 KiB | 5 Q