3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function destroy_foo() { $_SESSION["a"] = "Hello!"; //global $foo; unset($_SESSION["a"]); } $_SESSION["a"]= 'bar'; destroy_foo(); echo $_SESSION["a"];
based on V1K7o
Output for 5.3.0 - 7.1.0
Notice: Undefined index: a in /in/eLokZ on line 12
Output for 4.3.0 - 5.2.17
Notice: Undefined index: a in /in/eLokZ on line 12