3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = [0, 1]; unset($x[1]); $y = $x; $x[] = 'new'; $y[] = 'new'; last($x); last($y); var_dump(key($x)); var_dump(key($y));
based on Dv6ct