3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'one' => [20,0,40,0,60], 'two' => [50], 'three' => [0, 0, 0, 0], 'four' => [10, 5], 'five' => [0], 'six' => [null], 'seven' => [false], 'eight' => ["0"], ]; var_export( array_filter($array, fn($row) => !in_array(0, $row, true)) );
Output for 7.4.0 - 7.4.30, 8.0.1 - 8.0.20, 8.1.0 - 8.1.7
array ( 'two' => array ( 0 => 50, ), 'four' => array ( 0 => 10, 1 => 5, ), 'six' => array ( 0 => NULL, ), 'seven' => array ( 0 => false, ), 'eight' => array ( 0 => '0', ), )

preferences:
27.71 ms | 418 KiB | 15 Q