3v4l.org

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

Class CarType: [no user functions]
Class VanType: [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/WEVsc
function name:  build
number of ops:  2
compiled vars:  !0 = $type
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     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/WEVsc
function name:  build
number of ops:  2
compiled vars:  !0 = $type
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     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:
137.44 ms | 1001 KiB | 13 Q