3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function scope () { $var = '_POST'; var_dump(isset($$var)); } $var = '_POST'; var_dump(isset($$var), ${$var}['test']); scope();
Output for 5.3.0 - 7.1.0
Notice: Undefined index: test in /in/JkN7s on line 11 bool(true) NULL bool(false)
Output for 4.3.0 - 5.2.17
Notice: Undefined index: test in /in/JkN7s on line 11 bool(true) NULL bool(false)