3v4l.org

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

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

End of function get

End of class a.

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

End of function get

End of class b.

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

End of function get

End of class c.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
201.44 ms | 1393 KiB | 13 Q