3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x->foo = 'bar'; $x->bar = 'car'; var_dump($x['foo']);
based on 4PAt4
Output for 7.0.0 - 7.2.0
Warning: Creating default object from empty value in /in/LccUv on line 3 Fatal error: Uncaught Error: Cannot use object of type stdClass as array in /in/LccUv:6 Stack trace: #0 {main} thrown in /in/LccUv on line 6
Process exited with code 255.
Output for 5.4.2 - 5.6.28
Warning: Creating default object from empty value in /in/LccUv on line 3 Fatal error: Cannot use object of type stdClass as array in /in/LccUv on line 6
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Strict Standards: Creating default object from empty value in /in/LccUv on line 3 Fatal error: Cannot use object of type stdClass as array in /in/LccUv on line 6
Process exited with code 255.