3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.5 ms | 1393 KiB | 13 Q