3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.85 ms | 1392 KiB | 13 Q