3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo =[ [ 'a', 'b' ], [ 'c', 'd' ] ]; foreach ($foo as [ $x, &$y ]) { /* .... */ } $y = 'e'; var_dump($foo);

preferences:
25.54 ms | 404 KiB | 5 Q