3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.18 ms | 1392 KiB | 13 Q