3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = false; array_key_exists($a, get_defined_vars()); array($$a);
Output for 5.0.4 - 7.2.0
Warning: array_key_exists(): The first argument should be either a string or an integer in /in/5q2LD on line 3 Notice: Undefined variable: in /in/5q2LD on line 4
Output for 4.3.2 - 5.0.3
Warning: array_key_exists(): The first argument should be either a string or an integer in /in/5q2LD on line 3 Notice: Undefined variable: in /in/5q2LD on line 4
Output for 4.3.0 - 4.3.1
Warning: array_key_exists() [http://www.php.net/function.array-key-exists]: The first argument should be either a string or an integer in /in/5q2LD on line 3 Notice: Undefined variable: in /in/5q2LD on line 4