3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "yorman"; $str[0] = "ab"; $str[1] = "cd"; echo $str; echo "\n"; $hrr = ""; $hrr[0] = "santi"; $hrr[1] = "ago"; print_r( $hrr );
Output for 7.1.0
acrman sa
Output for 4.3.0 - 7.0.14
acrman Array ( [0] => santi [1] => ago )