3v4l.org

run code in 500+ PHP versions simultaneously
<?php trait A { function smallTalk() {} function bigTalk() {} } class Aliased_Talker { use A { A::bigTalk as talk; // OK A::smallTalk as smallTalk; // Not OK. } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Gd4M7
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                                'aliased_talker'
   13     1      > RETURN                                                       1

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

End of function smalltalk

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

End of function bigtalk

End of class A.

Class Aliased_Talker: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.5 ms | 3372 KiB | 13 Q