3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
201.9 ms | 3148 KiB | 14 Q