3v4l.org

run code in 300+ PHP versions simultaneously
<?php $remove = array( "Remove Me", "Delete this", "this", ); $haystack = array( array("Data"), array("Ddddata"), array("Remove Me"), array("Delete this"), array("Foo"), array("Bar"), array("Don't Remove this"), array("remove me"), // Not really! array("got this"), array("this"), ); var_dump(array_filter($haystack, function($e) use ($remove) { return !in_array(reset($e), $remove); }));

preferences:
36.79 ms | 402 KiB | 5 Q