3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a["key1"] ; echo $a["key1"]; $a["key1"] = 1; echo $a["key1"];
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
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