3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = [ ["id" => "53"], ["id" => "54"], ["id" => "60"], ["id" => "61"] ]; $to_remove = ["53", "54", "60"]; $content = array_filter($content, function($x) use($to_remove) { return !in_array($x["id"], $to_remove); }); print_r($content);

preferences:
30.97 ms | 402 KiB | 5 Q