3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('k1' => null, 'k2'=>null); $result = ($a === null); var_dump($result || count($a) === 0); var_dump($notPopulated === null);
based on bNqoT
Output for 5.0.4 - 7.2.0
bool(false) Notice: Undefined variable: notPopulated in /in/k143S on line 5 bool(true)
Output for 4.3.0 - 5.0.3
bool(false) Notice: Undefined variable: notPopulated in /in/k143S on line 5 bool(true)