3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $b = "tradala"; $b[0] = "mad"; $b[1] = "muha"; echo $b; echo "\n"; $c = ""; $c[0] = "mad"; $c[1] = "muha"; print_r($c);
Output for 7.1.0
mmadala mm
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
mmadala Array ( [0] => mad [1] => muha )