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 { public function getNumberOfTerminals(); public function getRunwayLength(); public function getNumberOfCheckinDesks(); public function getCollectionOfDestinationAirports(); } interface UserInterface { public function getPassportId(); public function getHungerLevel(); public function getDestinationAirport(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VbiZ5
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   42     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/VbiZ5
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/VbiZ5
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/VbiZ5
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/VbiZ5
function name:  getAllAirports
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     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/VbiZ5
function name:  getPossibleDestinationAirportsForOriginAirport
number of ops:  2
compiled vars:  !0 = $origin
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     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/VbiZ5
function name:  fetchFlights
number of ops:  3
compiled vars:  !0 = $origin, !1 = $destination
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     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/VbiZ5
function name:  getTime
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     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/VbiZ5
function name:  getCost
number of ops:  2
compiled vars:  !0 = $user
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function getcost

End of class FlightInterface.

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

End of function getnumberofterminals

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

End of function getrunwaylength

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

End of function getnumberofcheckindesks

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

End of function getcollectionofdestinationairports

End of class AirportInterface.

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

End of function getpassportid

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

End of function gethungerlevel

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

End of function getdestinationairport

End of class UserInterface.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.18 ms | 1403 KiB | 13 Q