3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FooClass { } $foo = new FooClass(); $foo->bar = "qux"; $thing = "bar"; $qux = "th"; $grault = "ing"; echo $foo->${${$foo->bar}.${grault}};
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Lfi9q
function name:  (null)
number of ops:  17
compiled vars:  !0 = $foo, !1 = $thing, !2 = $qux, !3 = $grault
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $4      'FooClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $4
    6     3        ASSIGN_OBJ                                               !0, 'bar'
          4        OP_DATA                                                  'qux'
    7     5        ASSIGN                                                   !1, 'bar'
    8     6        ASSIGN                                                   !2, 'th'
    9     7        ASSIGN                                                   !3, 'ing'
   11     8        FETCH_OBJ_R                                      ~11     !0, 'bar'
          9        FETCH_R                      local               ~12     ~11
         10        FETCH_CONSTANT                                   ~13     'grault'
         11        FETCH_R                      local               ~14     ~13
         12        CONCAT                                           ~15     ~12, ~14
         13        FETCH_R                      local               ~16     ~15
         14        FETCH_OBJ_R                                      ~17     !0, ~16
         15        ECHO                                                     ~17
         16      > RETURN                                                   1

Class FooClass: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.07 ms | 1384 KiB | 13 Q