3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.25 ms | 1394 KiB | 15 Q