3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $bar = 'I am 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/tVfD5 on line 3 7I am bar. 7
Output for 4.3.0 - 4.3.2
I am bar. 7