3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh $a = Map{0=>1,1=>2,2=>3}; $b = $a; $b[0] = 4; echo $a[0]; echo $b[0];
based on XIIad
Output for 5.4.0 - 5.4.32
<?hh $a = Map{0=>1,1=>2,2=>3}; $b = $a; $b[0] = 4; echo $a[0]; echo $b[0];