3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 'Hola'; $a[0] = ''; echo $a;
based on ECmKk
Output for 7.1.0 - 7.3.0rc3
Warning: Cannot assign an empty string to a string offset in /in/02UVb on line 3 Hola
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.0.24
ola