3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a[10]->b[] = 1; $a[10]->sum += 500; print_r($a);
based on GY0qm
Output for 5.5.24 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined property: stdClass::$sum in /in/6euAM on line 3 Array ( [10] => stdClass Object ( [b] => Array ( [0] => 1 ) [sum] => 500 ) )
Output for 5.0.0 - 5.4.45, hhvm-3.12.0
Array ( [10] => stdClass Object ( [b] => Array ( [0] => 1 ) [sum] => 500 ) )
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 4.4.9
Notice: Undefined property: sum in /in/6euAM on line 3 Array ( [10] => stdClass Object ( [b] => Array ( [0] => 1 ) [sum] => 500 ) )