3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { public function dummyMethod(); } class A implements I { public function dummyMethod(): A {} } class B extends A { public function dummyMethod(): B {} } class C implements I { public function dummyMethod(): C {} } (new A())->dummyMethod(); (new B())->dummyMethod(); (new C())->dummyMethod();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YW8dv
function name:  (null)
number of ops:  16
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'a'
   11     1        DECLARE_CLASS                                            'b', 'a'
   15     2        DECLARE_CLASS                                            'c'
   19     3        NEW                                              $0      'A'
          4        DO_FCALL                                      0          
          5        INIT_METHOD_CALL                                         $0, 'dummyMethod'
          6        DO_FCALL                                      0          
   20     7        NEW                                              $3      'B'
          8        DO_FCALL                                      0          
          9        INIT_METHOD_CALL                                         $3, 'dummyMethod'
         10        DO_FCALL                                      0          
   21    11        NEW                                              $6      'C'
         12        DO_FCALL                                      0          
         13        INIT_METHOD_CALL                                         $6, 'dummyMethod'
         14        DO_FCALL                                      0          
         15      > RETURN                                                   1

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

End of function dummymethod

End of class I.

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

End of function dummymethod

End of class A.

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

End of function dummymethod

End of class B.

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

End of function dummymethod

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.64 ms | 1395 KiB | 13 Q