3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface InterfaceService { } interface InterfaceFactory { function make(InterfaceService $s); } class ConcreteService implements InterfaceService { } class ConcreteFactory implements InterfaceFactory { function make(ConcreteService $s) {} }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D0kQ3
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CLASS                                                'concreteservice'
    6     1        DECLARE_CLASS                                                'concretefactory'
          2      > RETURN                                                       1

Class InterfaceService: [no user functions]
Class InterfaceFactory:
Function make:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D0kQ3
function name:  make
number of ops:  2
compiled vars:  !0 = $s
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   RECV                                                 !0      
          1      > RETURN                                                       null

End of function make

End of class InterfaceFactory.

Class ConcreteService: [no user functions]
Class ConcreteFactory:
Function make:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D0kQ3
function name:  make
number of ops:  2
compiled vars:  !0 = $s
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   RECV                                                 !0      
          1      > RETURN                                                       null

End of function make

End of class ConcreteFactory.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
216.35 ms | 2407 KiB | 13 Q