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 7.0.0 - 7.1.0
Notice: Undefined index: test in /in/r4c1M on line 11 bool(true) NULL bool(false)
Output for 5.4.0 - 5.6.28
Warning: Illegal string offset 'test' in /in/r4c1M on line 11 Notice: Undefined variable: _ in /in/r4c1M on line 11 bool(true) NULL bool(false)
Output for 5.0.4 - 5.3.29
Notice: Undefined variable: _ in /in/r4c1M on line 11 bool(true) NULL bool(false)
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: _ in /in/r4c1M on line 11 bool(true) NULL bool(false)