3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(empty($arr[$key])); $arr = array(); var_dump(empty($arr[$key]));
based on K6efh
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: key in /in/IKsGE on line 1 bool(true) Notice: Undefined variable: key in /in/IKsGE on line 1 bool(true)
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: key in /in/IKsGE on line 1 bool(true) Notice: Undefined variable: key in /in/IKsGE on line 1 bool(true)