3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr=[ 'a' => [ 'b' => 3, ] ]; $globalsCopy = $GLOBALS; $globalsCopy['arr']['a']['b'] = 12; var_dump($arr);

preferences:
26.22 ms | 404 KiB | 5 Q