3v4l.org

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