3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static $my_static = 'foo'; public function staticValue() { return $this->$my_static; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dBW02
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                   1

Class Foo:
Function staticvalue:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dBW02
function name:  staticValue
number of ops:  3
compiled vars:  !0 = $my_static
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   FETCH_OBJ_R                                      ~1      !0
          1      > RETURN                                                   ~1
    8     2*     > RETURN                                                   null

End of function staticvalue

End of class Foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.28 ms | 1392 KiB | 13 Q