3v4l.org

run code in 500+ PHP versions simultaneously
<?php trait MyTest { public function name() { return 'other string'; } } abstract class Testing { public static function name() { return 'string'; } } class AnotherExample extends Testing { use MyTest { MyTest::name as newName; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ig0Al
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   20     0  E >   DECLARE_CLASS                                                'anotherexample', 'testing'
   25     1      > RETURN                                                       1

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

End of function name

End of class MyTest.

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

End of function name

End of class Testing.

Class AnotherExample: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
125.93 ms | 474 KiB | 7 Q