3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $b = 'B'; } class B { public static $c = 'Hello world!'; } $a = new A; var_dump(${${$a->b} = $a->b}::$c); // about as close to $a->b::$c you can get
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PnFVc
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $1      'A'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        INIT_FCALL                                               'var_dump'
          4        FETCH_OBJ_R                                      ~4      !0, 'b'
          5        FETCH_OBJ_R                                      ~6      !0, 'b'
          6        FETCH_W                      local               $5      ~4
          7        ASSIGN                                           ~7      $5, ~6
          8        FETCH_R                      local               ~8      ~7
          9        FETCH_CLASS                                   0  $9      ~8
         10        FETCH_STATIC_PROP_R          unknown             ~10     'c'
         11        SEND_VAL                                                 ~10
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Class A: [no user functions]
Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.11 ms | 1394 KiB | 15 Q