3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I1 { function f1(); }; interface I2 { function f2(); } interface I3 extends I1, I2 { } class WTF implements I3 { function f1() { echo "f1"; } function f2() { echo "f2"; } } $obj = new WTF(); function test(I3 $obj) { $obj->f1(); $obj->f2(); } test($obj);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/niber
function name:  (null)
number of ops:  9
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   DECLARE_CLASS                                            'i3'
   15     1        DECLARE_CLASS                                            'wtf'
   21     2        NEW                                              $1      'WTF'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   29     5        INIT_FCALL                                               'test'
          6        SEND_VAR                                                 !0
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/niber
function name:  test
number of ops:  6
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   RECV                                             !0      
   24     1        INIT_METHOD_CALL                                         !0, 'f1'
          2        DO_FCALL                                      0          
   25     3        INIT_METHOD_CALL                                         !0, 'f2'
          4        DO_FCALL                                      0          
   26     5      > RETURN                                                   null

End of function test

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

End of function f1

End of class I1.

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

End of function f2

End of class I2.

Class I3: [no user functions]
Class WTF:
Function f1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/niber
function name:  f1
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ECHO                                                     'f1'
          1      > RETURN                                                   null

End of function f1

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

End of function f2

End of class WTF.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.65 ms | 1403 KiB | 14 Q