3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array('a'=>0,'b'=>null,'c'=>3,'d'=>null); $filtered = array_filter($arr, function($var){return !is_null($var);} ); print_r($filtered);
based on icEDa
Output for 5.6.0 - 7.3.1
Array ( [a] => 0 [c] => 3 )