3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface CarType extends VehicleType {} interface VanType extends CarType {} interface VehicleType {} interface CarFactory { function build(CarType $type); } class VanFactory implements CarFactory { function build(VehicleType $type) {} }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kboga
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'cartype'
    4     1        DECLARE_CLASS                                            'vantype'
   11     2        DECLARE_CLASS                                            'vanfactory'
   13     3      > RETURN                                                   1

Class CarType: [no user functions]
Class VanType: [no user functions]
Class VehicleType: [no user functions]
Class CarFactory:
Function build:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kboga
function name:  build
number of ops:  2
compiled vars:  !0 = $type
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function build

End of class CarFactory.

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

End of function build

End of class VanFactory.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
134.26 ms | 1001 KiB | 13 Q