3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array( 0 => null, 1 => null, 2 => null ); if (count(array_keys($users, null, true)) != count($users)) { echo 'true'; } /* 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"; */

preferences:
36.08 ms | 402 KiB | 5 Q