3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['foo' => ['bar' => 'baz']]; ['foo' => &$foo] = $arr; $foo = ['baz' => 'qux']; print_r($arr); // ['foo' => ['baz' => 'qux']];

preferences:
26.64 ms | 404 KiB | 5 Q