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"; } } $c = new c; $c->get();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QVijZ
function name:  (null)
number of ops:  7
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   DECLARE_CLASS                                            'c'
   20     1        NEW                                              $1      'c'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   21     4        INIT_METHOD_CALL                                         !0, 'get'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class a:
Function get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QVijZ
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/QVijZ
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/QVijZ
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:
153.28 ms | 1394 KiB | 13 Q