3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a[10]->b[] = 1; $a[10]->sum += 500; print_r($a);
based on bk9UR
Output for 5.5.0 - 7.1.0
Notice: Undefined property: stdClass::$sum in /in/GY0qm on line 4 Array ( [10] => stdClass Object ( [b] => Array ( [0] => 1 ) [sum] => 500 ) )
Output for 5.0.0 - 5.4.45
Array ( [10] => stdClass Object ( [b] => Array ( [0] => 1 ) [sum] => 500 ) )
Output for 4.3.0 - 4.4.9
Notice: Undefined property: sum in /in/GY0qm on line 4 Array ( [10] => stdClass Object ( [b] => Array ( [0] => 1 ) [sum] => 500 ) )