3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr["test"] = $_SESSION; var_dump($arr);
based on 4jmY1
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: _SESSION in /in/vWUgp on line 3 array(1) { ["test"]=> NULL }
Output for hhvm-3.10.0 - 3.13.2
array(1) { ["test"]=> array(0) { } }
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: _SESSION in /in/vWUgp on line 3 array(1) { ["test"]=> NULL }