3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait A { function sigh(){} } trait B{ use A; } trait C{ use A; } class GAWD{ use B; use C; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rt6rn
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CLASS                                            'b'
    5     1        DECLARE_CLASS                                            'c'
    6     2        DECLARE_CLASS                                            'gawd'
    9     3      > RETURN                                                   1

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

End of function sigh

End of class A.

Class B: [no user functions]
Class C: [no user functions]
Class GAWD: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
287.6 ms | 1001 KiB | 13 Q