3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $b = [&$a]; $c = $b; unset($a); // <-- $b[0] = 2; echo "$b[0] $c[0]";
Output for 8.0.8
2 1

preferences:
165.14 ms | 454 KiB | 5 Q