3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.96 ms | 2277 KiB | 14 Q