3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "Hello World!"; for ($i = 0; $i <= 5; $i++) { var_dump($string[$i]); unset($string[$i]); }
based on 8fACe
Output for 7.0.0 - 7.2.0
string(1) "H" Fatal error: Uncaught Error: Cannot unset string offsets in /in/ZOkDO:6 Stack trace: #0 {main} thrown in /in/ZOkDO on line 6
Process exited with code 255.
Output for 5.3.21 - 5.6.28
string(1) "H" Fatal error: Cannot unset string offsets in /in/ZOkDO on line 6
Process exited with code 255.