3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a=array(); $b=$a; $b["x"]=0; $c=$b; $b["x"]=1; echo gettype($b), $c["x"]; echo "\n"; $a=$GLOBALS; $b=$a; $b["x"]=0; $c=$b; $b["x"]=1; echo gettype($b), $c["x"];
based on I8mFY
Output for 4.3.0 - 7.2.0
array0 array1