3v4l.org

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