3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr=[ 'a' => [ 'b' => 3, ] ]; $arrCopy = $arr; $arrCopy['a']['b'] = 12; var_dump($arr); var_dump($arrCopy);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qufjX
function name:  (null)
number of ops:  12
compiled vars:  !0 = $arr, !1 = $arrCopy
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, !0
    9     2        FETCH_DIM_W                                      $4      !1, 'a'
          3        ASSIGN_DIM                                               $4, 'b'
          4        OP_DATA                                                  12
   10     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
   11     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.04 ms | 1394 KiB | 15 Q