3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.48 ms | 1393 KiB | 13 Q