3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = array(0); // let the current overflow next($x); // the aliasing here... //$z = &$x; // ... forces this assignment to be executed istantly (no copy-on-write) $y = $x; // $y was reset, but not $x, which makes sense, echo "y: " . current($y) . "\n"; echo "x: " . current($x) . "\n"; ?>

preferences:
34.44 ms | 402 KiB | 5 Q