3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Reducer{ public static $models = []; } class Manager{ private $reducer; public function __construct() { $this->reducer = new Reducer(); } public function test() { $this->reducer::$models; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/llJqC
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E > > RETURN                                                   1

Class Reducer: [no user functions]
Class Manager:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/llJqC
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $1      'Reducer'
          1        DO_FCALL                                      0          
          2        ASSIGN_OBJ                                               'reducer'
          3        OP_DATA                                                  $1
   13     4      > RETURN                                                   null

End of function __construct

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/llJqC
function name:  test
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   FETCH_OBJ_R                                      ~0      'reducer'
          1        FETCH_CLASS                                   0  $1      ~0
          2        FETCH_STATIC_PROP_R          unknown             ~2      'models'
          3        FREE                                                     ~2
   18     4      > RETURN                                                   null

End of function test

End of class Manager.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.47 ms | 1394 KiB | 13 Q