3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $data = new ArrayObject(); $data['key'] = 'value'; $data['key']['array']['c']['b'] = 'value'; var_dump($data);
based on 4Z1Lu
Output for 7.0.0 - 7.2.0
Warning: Illegal string offset 'array' in /in/k5DWL on line 6 Fatal error: Uncaught Error: Cannot use string offset as an array in /in/k5DWL:6 Stack trace: #0 {main} thrown in /in/k5DWL on line 6
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Warning: Illegal string offset 'array' in /in/k5DWL on line 6 Fatal error: Cannot use string offset as an array in /in/k5DWL on line 6
Process exited with code 255.
Output for 5.2.0 - 5.3.29
Fatal error: Cannot use string offset as an array in /in/k5DWL on line 6
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Objects used as arrays in post/pre increment/decrement must return values by reference in /in/k5DWL on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: arrayobject in /in/k5DWL on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: arrayobject in /in/k5DWL on line 3