3v4l.org

run code in 200+ php & hhvm versions
<?php $name = array(); $name_reference = $name['name']; // => GENERATE NOTICE, $name_reference = NULL var_dump($name_reference); $name = false; $name_reference = $name['name']; // => NO ERROR ($name = false), $name_reference = NULL var_dump($name_reference);
based on rNGq9
Output for 5.3.0 - 5.6.38, hhvm-3.10.1 - 3.21.3, 7.0.0 - 7.3.2
Notice: Undefined index: name in /in/RUaHX on line 4 NULL NULL
Output for hhvm-3.22.0
Notice: Undefined index: name in /in/RUaHX on line -1 NULL NULL
Output for 4.3.0 - 5.2.17
Notice: Undefined index: name in /in/RUaHX on line 4 NULL NULL