3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public $aaa; } class B { public $bbb; } $a=[]; foreach(range(0,12) as $val){ $a[] = new A; $a[]->aaa='jkljkljkl'; } echo $a[];
Output for 7.3.0rc3
Fatal error: Cannot use [] for reading in /in/5EnWJ on line 16
Process exited with code 255.