3v4l.org

run code in 300+ PHP versions simultaneously
<?php $condition = true; interface A { function foo(): X; } interface B extends A { function foo(): X; } if($condition){ interface X { function bar(): A; } interface Y extends X { function bar(): A; } }else{ interface X { function bar(): A; } interface Y extends X { function bar(): A; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vfQhD
function name:  (null)
number of ops:  9
compiled vars:  !0 = $condition
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <true>
   10     1        DECLARE_CLASS                                            'b'
   14     2      > JMPZ                                                     !0, ->6
   15     3    >   DECLARE_CLASS                                            'x'
   19     4        DECLARE_CLASS                                            'y'
          5      > JMP                                                      ->8
   23     6    >   DECLARE_CLASS                                            'x'
   27     7        DECLARE_CLASS                                            'y'
   30     8    > > RETURN                                                   1

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

End of function foo

End of class A.

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

End of function foo

End of class B.

Class X:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vfQhD
function name:  bar
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 bar

End of class X.

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

End of function bar

End of class Y.

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

End of function bar

End of class X.

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

End of function bar

End of class Y.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.77 ms | 1403 KiB | 13 Q