3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [[0, 3, 10, 5, 6, 9, 2, 7, 1, 4, 8, 11], [0,1], [0,1], [0,1]]; $deletes = [3, 5]; $results = []; foreach ($array as $value) { foreach ($value as $valueVal) { $results[] = in_array($valueVal, $deletes); } } var_export($results);

preferences:
115.04 ms | 405 KiB | 5 Q