3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace NSP { class A {} } namespace NSP1 { use NSP; use NSP\A as ALIAS; interface WithoutReturn { function a(); } interface WithReturn { function a(): NSP\A; } interface WithReturnAlias { function a(): ALIAS; } interface WithReturnCase { function a(): NSP\a; } class Valid { function a(): NSP\A { } } class Invalid { function a(): int { } } class WithoutReturnClass { function a() { } } class C extends Valid implements WithReturnAlias {} }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hbAjv
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   43     0  E >   DECLARE_CLASS                                            'nsp1%5Cc', 'nsp1%5Cvalid'
   44     1      > RETURN                                                   1

Class NSP\A: [no user functions]
Class NSP1\WithoutReturn:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hbAjv
function name:  a
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E > > RETURN                                                   null

End of function a

End of class NSP1\WithoutReturn.

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

End of function a

End of class NSP1\WithReturn.

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

End of function a

End of class NSP1\WithReturnAlias.

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

End of function a

End of class NSP1\WithReturnCase.

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

End of class NSP1\Valid.

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

End of function a

End of class NSP1\Invalid.

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

End of function a

End of class NSP1\WithoutReturnClass.

Class NSP1\C: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.38 ms | 1399 KiB | 13 Q