3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FlightBookingSystemInterface { public function getDepartureTimes(AirportInterface $origin, AirportInterface $destination); public function getFlightCost(AirportInterface $origin, AirportInterface $destination, $time); public function bookFlight(FlightInterface $flight, UserInterface $user); } interface AirportRepositoryInterface { public function getAllAirports(); public function getPossibleDestinationAirportsForOriginAirport(AirportInterface $origin); } interface FlightRepositoryInterface { public function fetchFlights($origin, $destination); } interface FlightInterface { public function getTime(); public function getCost(UserInterface $user); } interface AirportInterface {} interface UserInterface {}
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sA5Sk
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E > > RETURN                                                   1

Class FlightBookingSystemInterface:
Function getdeparturetimes:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sA5Sk
function name:  getDepartureTimes
number of ops:  3
compiled vars:  !0 = $origin, !1 = $destination
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2      > RETURN                                                   null

End of function getdeparturetimes

Function getflightcost:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sA5Sk
function name:  getFlightCost
number of ops:  4
compiled vars:  !0 = $origin, !1 = $destination, !2 = $time
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3      > RETURN                                                   null

End of function getflightcost

Function bookflight:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sA5Sk
function name:  bookFlight
number of ops:  3
compiled vars:  !0 = $flight, !1 = $user
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2      > RETURN                                                   null

End of function bookflight

End of class FlightBookingSystemInterface.

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

End of function getallairports

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

End of function getpossibledestinationairportsfororiginairport

End of class AirportRepositoryInterface.

Class FlightRepositoryInterface:
Function fetchflights:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sA5Sk
function name:  fetchFlights
number of ops:  3
compiled vars:  !0 = $origin, !1 = $destination
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2      > RETURN                                                   null

End of function fetchflights

End of class FlightRepositoryInterface.

Class FlightInterface:
Function gettime:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sA5Sk
function name:  getTime
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E > > RETURN                                                   null

End of function gettime

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

End of function getcost

End of class FlightInterface.

Class AirportInterface: [no user functions]
Class UserInterface: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.18 ms | 1399 KiB | 13 Q