3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = [ 'user1' => new StdClass(), 'user2' => new StdClass(), ]; $o = $data['user1']; $o->name = "Onotole"; var_dump($data['user1']->name);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MBcQs
function name:  (null)
number of ops:  17
compiled vars:  !0 = $data, !1 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'StdClass'
          1        DO_FCALL                                      0          
          2        INIT_ARRAY                                       ~4      $2, 'user1'
    4     3        NEW                                              $5      'StdClass'
          4        DO_FCALL                                      0          
          5        ADD_ARRAY_ELEMENT                                ~4      $5, 'user2'
    2     6        ASSIGN                                                   !0, ~4
    6     7        FETCH_DIM_R                                      ~8      !0, 'user1'
          8        ASSIGN                                                   !1, ~8
    7     9        ASSIGN_OBJ                                               !1, 'name'
         10        OP_DATA                                                  'Onotole'
    8    11        INIT_FCALL                                               'var_dump'
         12        FETCH_DIM_R                                      ~11     !0, 'user1'
         13        FETCH_OBJ_R                                      ~12     ~11, 'name'
         14        SEND_VAL                                                 ~12
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.22 ms | 1394 KiB | 15 Q