3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array( 0 => null, 1 => null, 2 => null ); if(array_filter($array)) { echo "true\n"; } else echo "false\n"; $array[1] = "test"; if (array_filter($array)) { echo "true\n"; } else echo "false\n";
Output for 4.3.0 - 7.2.0
false true