3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $options = 'wertwertwertwertwertwert'; $options['after'] .= 'x';
based on F4EBq
Output for 7.1.0 - 7.2.0
Warning: Illegal string offset 'after' in /in/0fReK on line 3 Fatal error: Uncaught Error: Cannot use assign-op operators with string offsets in /in/0fReK:3 Stack trace: #0 {main} thrown in /in/0fReK on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.20
Warning: Illegal string offset 'after' in /in/0fReK on line 3 Fatal error: Uncaught Error: Cannot use assign-op operators with overloaded objects nor string offsets in /in/0fReK:3 Stack trace: #0 {main} thrown in /in/0fReK on line 3
Process exited with code 255.
Output for 5.4.11 - 5.6.28
Warning: Illegal string offset 'after' in /in/0fReK on line 3 Fatal error: Cannot use assign-op operators with overloaded objects nor string offsets in /in/0fReK on line 3
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Fatal error: Cannot use assign-op operators with overloaded objects nor string offsets in /in/0fReK on line 3
Process exited with code 255.