3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = "foo"; $a[7] = "abc"; var_dump($a);
based on DhVGc
Output for 4.3.0 - 5.2.9, 5.2.12 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(8) "foo a"
Output for 5.2.10 - 5.2.11
Notice: Uninitialized string offset: 7 in /in/4Pugf on line 3 string(8) "foo a"