3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(E_ALL & E_NOTICE); $b = null; var_dump($b['foo1']); $b = "string"; var_dump($b['foo2']); $b = 345678; var_dump($b['foo3']);
based on 1UoqI
Output for 4.3.0 - 7.1.0
NULL string(1) "s" NULL