3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = array(); $s[0] = array('Summe' => 1); $s[2003] = array('Summe' => 8); echo $s[0]['Summe']; echo $s[2004]['Summe'];
Output for 5.3.28 - 5.3.29, 5.4.20 - 7.2.0
1 Notice: Undefined offset: 2004 in /in/lZamQ on line 7
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.19
1 Notice: Undefined offset: 2004 in /in/Grorn on line 7
Output for 4.3.1 - 5.2.17
1 Notice: Undefined offset: 2004 in /in/Grorn on line 7
Output for 4.3.0
1 Notice: Undefined offset: 2004 in /in/lZamQ on line 7