3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C{} class D extends C{} interface iA{ public function m(C $obj); } class A implements iA{ public function m(C $obj) { $b =2; } } class B implements iA{ public function m(D $obj) { $a = 1; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E1Gl5
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   DECLARE_CLASS                                            'a'
   17     1        DECLARE_CLASS                                            'b'
   22     2      > RETURN                                                   1

Class C: [no user functions]
Class D: [no user functions]
Class iA:
Function m:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E1Gl5
function name:  m
number of ops:  2
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function m

End of class iA.

Class A:
Function m:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E1Gl5
function name:  m
number of ops:  3
compiled vars:  !0 = $obj, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   12     1        ASSIGN                                                   !1, 2
   13     2      > RETURN                                                   null

End of function m

End of class A.

Class B:
Function m:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E1Gl5
function name:  m
number of ops:  3
compiled vars:  !0 = $obj, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   RECV                                             !0      
   20     1        ASSIGN                                                   !1, 1
   21     2      > RETURN                                                   null

End of function m

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.95 ms | 1394 KiB | 13 Q