3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(array_key_exists($GLOBALS['v'])); $v = null; var_dump(array_key_exists($GLOBALS['v']));
Output for 5.3.0 - 7.2.0
Notice: Undefined index: v in /in/SUraP on line 3 Warning: array_key_exists() expects exactly 2 parameters, 1 given in /in/SUraP on line 3 NULL Warning: array_key_exists() expects exactly 2 parameters, 1 given in /in/SUraP on line 5 NULL
Output for 4.3.0 - 5.2.17
Notice: Undefined index: v in /in/SUraP on line 3 Warning: Wrong parameter count for array_key_exists() in /in/SUraP on line 3 NULL Warning: Wrong parameter count for array_key_exists() in /in/SUraP on line 5 NULL