3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a1 = array(1, 2, 3); $a2 = $a1; $a2[0] = 5; print_r($a1); $a3 = &$a1; $a3[0] = 5; print_r($a1);
based on UITJg
Output for 4.3.0 - 7.2.0
Array ( [0] => 1 [1] => 2 [2] => 3 ) Array ( [0] => 5 [1] => 2 [2] => 3 )