3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Collection { } interface Geocoder { public function geocode(): Collection; } class MyCollection implements Collection { } class Consumer { public function __construct(MyGeocoder $gecoder) { // } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SQWKf
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   DECLARE_CLASS                                            'mycollection'
   21     1      > RETURN                                                   1

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

End of function geocode

End of class Geocoder.

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

End of function __construct

End of class Consumer.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.98 ms | 1393 KiB | 13 Q