3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a["key1"] ; echo $a["key1"]; $a["key1"] = 1; echo $a["key1"];
Output for 5.3.0 - 7.1.7
Notice: Undefined index: key1 in /in/VFW2N on line 4 Notice: Undefined index: key1 in /in/VFW2N on line 6 1
Output for 4.3.0 - 5.2.17
Notice: Undefined index: key1 in /in/VFW2N on line 4 Notice: Undefined index: key1 in /in/VFW2N on line 6 1