3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new stdClass(); $obj->a = new StdClass(); $obj->a->b = 'abcd'; echo "$obj->a->b";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8pL6M
function name:  (null)
number of ops:  15
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    3     3        NEW                                              $5      'StdClass'
          4        DO_FCALL                                      0          
          5        ASSIGN_OBJ                                               !0, 'a'
          6        OP_DATA                                                  $5
    5     7        FETCH_OBJ_W                                      $7      !0, 'a'
          8        ASSIGN_OBJ                                               $7, 'b'
          9        OP_DATA                                                  'abcd'
    7    10        FETCH_OBJ_R                                      ~9      !0, 'a'
         11        NOP                                                      
         12        FAST_CONCAT                                      ~10     ~9, '-%3Eb'
         13        ECHO                                                     ~10
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
239.26 ms | 1001 KiB | 13 Q