3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('name'=>'bar'); $_SESSION['acc'] = $a; $_SESSION['name'] = 'baz'; var_dump($_SESSION['acc']['foo']);
Output for 5.3.0 - 7.1.0
Notice: Undefined index: foo in /in/H2BpT on line 8 NULL
Output for 4.3.0 - 5.2.17
Notice: Undefined index: foo in /in/H2BpT on line 8 NULL