3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var=''; var_dump($var); $var[0]='l'; var_dump($var);
Output for 7.1.0 - 7.2.0
string(0) "" string(1) "l"
Output for 5.3.19 - 7.0.20
string(0) "" array(1) { [0]=> string(1) "l" }