3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A{ public function method(); } interface B{ public function method(); public function other(); } class Q implements A,B{ public function method() { echo "method\n"; } public function other() { echo "other\n"; } } $q = new Q; $q->method(); $q->other();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/plDWV
function name:  (null)
number of ops:  9
compiled vars:  !0 = $q
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   DECLARE_CLASS                                            'q'
   33     1        NEW                                              $1      'Q'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   35     4        INIT_METHOD_CALL                                         !0, 'method'
          5        DO_FCALL                                      0          
   37     6        INIT_METHOD_CALL                                         !0, 'other'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

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

End of function method

End of class A.

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

End of function method

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

End of function other

End of class B.

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

End of function method

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

End of function other

End of class Q.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.19 ms | 1395 KiB | 13 Q