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']];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/30suM
function name:  (null)
number of ops:  11
compiled vars:  !0 = $arr, !1 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        MAKE_REF                                         $3      !0
          2        FETCH_LIST_W                                     $4      $3, 'foo'
          3        MAKE_REF                                         $5      $4
          4        ASSIGN_REF                                               !1, $5
          5        FREE                                                     $3
    5     6        ASSIGN                                                   !1, <array>
    6     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
245.78 ms | 1394 KiB | 16 Q