3v4l.org

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