3v4l.org

run code in 300+ PHP versions simultaneously
<?php $flight = [ [ "SearchId" => "fca84241-dd9b-4cf2-bd6f-2f221dcc2b91", "Results" => [ 0 => [ "ResultID" => "f0a54871-d728-424a-8e97-94e22308ac44", "IsRefundable" => true, "Fares" => [ 0 => [ "BaseFare" => 2775.0, "Tax" => 725.0, "Currency" => "BDT", "OtherCharges" => 0.0, "Discount" => 0.0, "AgentMarkUp" => 0.0, "PaxType" => "Adult", "PassengerCount" => 1, "ServiceFee" => 0.0, ] ], "Discount" => 0.0, "Validatingcarrier" => "BG", "LastTicketDate" => "2022-05-30T00:00:00", "segments" => [], "TotalFare" => 3500.0, "TotalFareWithAgentMarkup" => 3500.0, "Currency" => "BDT", "Availabilty" => 1, "FareType" => "InstantTicketing", "isMiniRulesAvailable" => false, "HoldAllowed" => false ] ] ] ]; foreach ($flight as $key => $teamArray) { echo $teamArray["SearchId"] . PHP_EOL; foreach($teamArray["Results"] as $result) { echo ($result["Fares"][0]["BaseFare"]) . PHP_EOL; echo ($result["Fares"][0]["Tax"]) . PHP_EOL; } }
Output for git.master, git.master_jit, rfc.property-hooks
fca84241-dd9b-4cf2-bd6f-2f221dcc2b91 2775 725

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
49.19 ms | 405 KiB | 5 Q