3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $obj = new ArrayObject; $obj['foo']['bar'] = 'baz'; unset($obj['foo']['bar']);
Output for 5.3.23 - 5.3.29, 5.4.13 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 5.2.7 - 5.3.22, 5.4.0 - 5.4.12
Notice: Indirect modification of overloaded element of ArrayObject has no effect in /in/4Pkp0 on line 6
Output for 5.2.1 - 5.2.6
Notice: Undefined index: foo in /in/4Pkp0 on line 4 Notice: Undefined index: foo in /in/4Pkp0 on line 6 Notice: Indirect modification of overloaded element of ArrayObject has no effect in /in/4Pkp0 on line 6
Output for 5.2.0
Notice: Undefined index: foo in /in/4Pkp0 on line 4 Notice: Undefined index: foo in /in/4Pkp0 on line 6
Output for 5.0.0 - 5.1.6
Notice: Undefined index: foo in /in/4Pkp0 on line 4 Fatal error: Objects used as arrays in post/pre increment/decrement must return values by reference in /in/4Pkp0 on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: arrayobject in /in/4Pkp0 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: arrayobject in /in/4Pkp0 on line 2