3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new ArrayObject(); $a["foo"] = array(); $a["foo"][] = "bar"; $a->bar = array(); $a->bar[] = "baz"; var_dump( $a );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5Js9E
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'ArrayObject'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        ASSIGN_DIM                                               !0, 'foo'
          4        OP_DATA                                                  <array>
    5     5        FETCH_DIM_W                                      $5      !0, 'foo'
          6        ASSIGN_DIM                                               $5
          7        OP_DATA                                                  'bar'
    6     8        ASSIGN_OBJ                                               !0, 'bar'
          9        OP_DATA                                                  <array>
    7    10        FETCH_OBJ_W                                      $8      !0, 'bar'
         11        ASSIGN_DIM                                               $8
         12        OP_DATA                                                  'baz'
    8    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.82 ms | 1394 KiB | 15 Q