3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait TestTrait {function b(){}} trait TestTrait2 {function b(){}} class A { use TestTrait, TestTrait2 { TestTrait::b insteadof b; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/eKafi
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CLASS                                            'a'
   10     1      > RETURN                                                   1

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

End of function b

End of class TestTrait.

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

End of function b

End of class TestTrait2.

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
204.4 ms | 1392 KiB | 13 Q