3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.15 ms | 1003 KiB | 14 Q