3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface StreamInterfaceA { public function write($data); } interface StreamInterfaceB { public function write($data); } class Stream implements StreamInterfaceA { public function write($data) { echo $data; } } function outputStreamInterfaceB(StreamInterfaceB $stream) { $stream->write('hello world'); } $stream = new Stream(); outputStreamInterfaceB($stream);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EFG1e
function name:  (null)
number of ops:  8
compiled vars:  !0 = $stream
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   DECLARE_CLASS                                            'stream'
   29     1        NEW                                              $1      'Stream'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   30     4        INIT_FCALL                                               'outputstreaminterfaceb'
          5        SEND_VAR                                                 !0
          6        DO_FCALL                                      0          
          7      > RETURN                                                   1

Function outputstreaminterfaceb:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EFG1e
function name:  outputStreamInterfaceB
number of ops:  5
compiled vars:  !0 = $stream
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   RECV                                             !0      
   25     1        INIT_METHOD_CALL                                         !0, 'write'
          2        SEND_VAL_EX                                              'hello+world'
          3        DO_FCALL                                      0          
   26     4      > RETURN                                                   null

End of function outputstreaminterfaceb

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

End of function write

End of class StreamInterfaceA.

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

End of function write

End of class StreamInterfaceB.

Class Stream:
Function write:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EFG1e
function name:  write
number of ops:  3
compiled vars:  !0 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
   18     1        ECHO                                                     !0
   19     2      > RETURN                                                   null

End of function write

End of class Stream.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.7 ms | 1399 KiB | 14 Q