3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var = array(123,456,array(789)); var_dump($var); $var2 = $var[2]; $var2[2] = 0; var_dump($var);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(3) { [0]=> int(123) [1]=> int(456) [2]=> array(1) { [0]=> int(789) } } array(3) { [0]=> int(123) [1]=> int(456) [2]=> array(1) { [0]=> int(789) } }