3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $serials = [ [ "foo" => "", "bar" => "" ], [ "foo" => "", "bar" => "" ], [ "foo" => "", "bar" => "" ], [ "foo" => "", "bar" => "" ], [ "foo" => "", "bar" => "" ], [ "foo" => "Don't remove ", "bar" => "me!" ] ]; $filteredArray = array_filter ($serials, function ($item) { return !empty(join(array_values($item))); }); var_dump($filteredArray);
based on UHmaE
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0alpha1
array(1) { [5]=> array(2) { ["foo"]=> string(13) "Don't remove " ["bar"]=> string(3) "me!" } }