3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = new Test; print_r($test->holder); class Test { protected static $holder = array('test' => 'item'); public static function method() { //print_r(self::holder); //Test::holder = array('one' => 'item'); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kq8qC
function name:  (null)
number of ops:  8
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    5     3        INIT_FCALL                                               'print_r'
          4        FETCH_OBJ_R                                      ~4      !0, 'holder'
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                                 
   17     7      > RETURN                                                   1

Class Test:
Function method:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kq8qC
function name:  method
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E > > RETURN                                                   null

End of function method

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.86 ms | 1385 KiB | 15 Q