3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = [ "foo" => 1, "bar" => null, ]; var_dump($foo); var_dump(array_filter($foo));
Output for 7.1.7
array(2) { ["foo"]=> int(1) ["bar"]=> NULL } array(1) { ["foo"]=> int(1) }