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) );
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
array ( 1 => array ( 0 => 'module2', 1 => 'path/to/file2.txt', 2 => '', ), )

preferences:
85.71 ms | 406 KiB | 5 Q