3v4l.org

run code in 500+ PHP versions simultaneously
<?php trait One { public function hello(): string { return '1'; } } trait Two { public function hello(): string { return '2'; } } class UsesBoth { use One, Two; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/nBWcS
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   19     0  E >   DECLARE_CLASS                                                'usesboth'
   22     1      > RETURN                                                       1

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

End of function hello

End of class One.

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

End of function hello

End of class Two.

Class UsesBoth: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
129.73 ms | 475 KiB | 7 Q