3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array("cat","dog","monkey"); $b = $a; $b[] = "mouse"; var_dump($a); var_dump($b);
Output for 4.3.0 - 7.1.0
array(3) { [0]=> string(3) "cat" [1]=> string(3) "dog" [2]=> string(6) "monkey" } array(4) { [0]=> string(3) "cat" [1]=> string(3) "dog" [2]=> string(6) "monkey" [3]=> string(5) "mouse" }