3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $bar = 'I am bar.'; $bar=utf8_encode($bar); echo $bar{10}=7; echo $bar;
Output for 4.3.3 - 5.2.9, 5.2.12 - 7.1.0
7I am bar. 7
Output for 5.2.10 - 5.2.11
Notice: Uninitialized string offset: 10 in /in/6iHfV on line 4 7I am bar. 7
Output for 4.3.0 - 4.3.2
I am bar. 7