3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace One { trait D { function foo1() { echo 44; } } class Agree { use D; } function funky(){ return 0; } } namespace foo { use \One\funky; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hVeD8
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'one%5Cagree'
   18     1      > RETURN                                                   1

Function one%5Cfunky:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hVeD8
function name:  One\funky
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E > > RETURN                                                   0
   13     1*     > RETURN                                                   null

End of function one%5Cfunky

Class One\D:
Function foo1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hVeD8
function name:  foo1
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     44
    6     1      > RETURN                                                   null

End of function foo1

End of class One\D.

Class One\Agree: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.88 ms | 1393 KiB | 13 Q