3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php for ($c = 'a'; $c <= 'z'; $c[0]++) { echo "$c\n"; }
based on 6qfcf
Output for 7.1.0 - 7.2.0
a Fatal error: Uncaught Error: Cannot increment/decrement string offsets in /in/MkCNE:3 Stack trace: #0 {main} thrown in /in/MkCNE on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.20
a Fatal error: Uncaught Error: Cannot increment/decrement overloaded objects nor string offsets in /in/MkCNE:3 Stack trace: #0 {main} thrown in /in/MkCNE on line 3
Process exited with code 255.
Output for 5.3.20 - 5.6.28
a Fatal error: Cannot increment/decrement overloaded objects nor string offsets in /in/MkCNE on line 3
Process exited with code 255.