3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ['a']; $b = &$a; var_dump($a, $b); $b[] = 'b'; var_dump($a, $b);
based on 10SH5
Output for 5.5.0 - 7.3.1
array(1) { [0]=> string(1) "a" } array(1) { [0]=> string(1) "a" } array(2) { [0]=> string(1) "a" [1]=> string(1) "b" } array(2) { [0]=> string(1) "a" [1]=> string(1) "b" }