3v4l.org

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