3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = 'test1'; $foo []= 'test2'; ?>
based on 2X7f7
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: [] operator not supported for strings in /in/j1lsO:4 Stack trace: #0 {main} thrown in /in/j1lsO on line 4
Process exited with code 255.
Output for 4.3.2 - 5.6.28
Fatal error: [] operator not supported for strings in /in/j1lsO on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: [] operator not supported for strings in /in/j1lsO on line 4