3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $entry = array(0 => 'foo',1 => false,2 => -1,3 => null,4 => ''); print_r(array_filter($entry));
based on MrCOr
Output for 4.3.0 - 7.2.0
Array ( [0] => foo [2] => -1 )