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; } }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.130.0130.00818.82
8.4.120.0130.00724.10
8.4.110.0110.00917.66
8.4.100.0040.00518.53
8.4.90.0110.00920.94
8.4.80.0150.00518.85
8.4.70.0140.00717.83
8.4.60.0130.00718.88
8.4.50.0140.00619.29
8.4.40.0100.01017.54
8.4.30.0060.00920.54
8.4.20.0030.01717.95
8.4.10.0030.00624.06
8.3.260.0060.00916.81
8.3.250.0110.00819.13
8.3.240.0090.00517.13
8.3.230.0110.00816.76
8.3.220.0100.00719.14
8.3.210.0140.00618.34
8.3.200.0050.00316.55
8.3.190.0150.00618.74
8.3.180.0140.00516.50
8.3.170.0090.00918.87
8.3.160.0070.01116.43
8.3.150.0120.00616.97
8.3.140.0040.00420.62
8.3.130.0000.00816.63
8.3.120.0150.00018.83
8.3.110.0090.00920.94
8.3.100.0030.00624.06
8.3.90.0160.00026.77
8.3.80.0070.00316.63
8.3.70.0070.01016.58
8.3.60.0180.00318.43
8.3.50.0110.00419.95
8.3.40.0030.01120.30
8.3.30.0110.00419.27
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0110.00720.48
8.2.280.0100.00919.93
8.2.270.0130.00317.09
8.2.260.0080.00016.82
8.2.250.0030.00618.58
8.2.240.0120.00317.02
8.2.230.0080.00822.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0100.00018.28
8.2.190.0090.00616.75
8.2.180.0040.01125.92
8.2.170.0070.00719.09
8.2.160.0110.00322.96
8.2.150.0070.00025.66
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0030.00626.16
8.2.110.0040.00422.11
8.2.100.0070.00717.91
8.2.90.0040.00417.91
8.2.80.0090.00017.97
8.2.70.0030.00517.50
8.2.60.0060.00617.93
8.2.50.0080.00018.07
8.2.40.0080.00017.92
8.2.30.0070.00018.19
8.2.20.0040.00420.48
8.2.10.0070.00018.05
8.2.00.0000.00819.34
8.1.330.0110.00821.84
8.1.320.0130.00616.16
8.1.310.0060.01515.89
8.1.300.0150.00018.46
8.1.290.0060.00330.84
8.1.280.0140.00325.92
8.1.270.0080.00023.99
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0080.00022.65
8.1.230.0030.00721.03
8.1.220.0040.00417.74
8.1.210.0000.00918.87
8.1.200.0040.00417.35
8.1.190.0060.00319.32
8.1.180.0000.00818.10
8.1.170.0000.00818.65
8.1.160.0040.00418.90
8.1.150.0070.00318.50
8.1.140.0040.00417.50
8.1.130.0030.00318.89
8.1.120.0000.00717.46
8.1.110.0040.00417.30
8.1.100.0000.00917.35
8.1.90.0040.00417.47
8.1.80.0030.00617.54
8.1.70.0070.00017.54
8.1.60.0130.00017.52
8.1.50.0120.00317.38
8.1.40.0000.01217.50
8.1.30.0070.00517.59
8.1.20.0040.00817.59
8.1.10.0060.00617.51
8.1.00.0140.00317.54
8.0.300.0040.00419.98
8.0.290.0000.00817.05
8.0.280.0050.00218.39
8.0.270.0070.00018.03
8.0.260.0030.00318.42
8.0.250.0000.00716.87
8.0.240.0000.00716.86
8.0.230.0080.00016.96
8.0.220.0030.00316.77
8.0.210.0050.00216.93
8.0.200.0000.00716.98
8.0.190.0080.00716.77
8.0.180.0070.00716.83
8.0.170.0110.00316.90
8.0.160.0160.00016.86
8.0.150.0080.00816.84
8.0.140.0120.00416.84
8.0.130.0130.00316.82
8.0.120.0110.00516.80
8.0.110.0090.00616.79
8.0.100.0130.00716.88
8.0.90.0130.00416.92
8.0.80.0120.00716.93
8.0.70.0060.00916.89
8.0.60.0120.00216.82
8.0.50.0050.01016.80
8.0.30.0140.00016.70
8.0.20.0120.00316.99
8.0.10.0110.00517.04
7.4.330.0030.00315.55
7.4.320.0000.00616.38
7.4.300.0030.00316.66
7.4.290.0110.00716.42
7.4.280.0140.00316.51
7.4.270.0110.00616.50
7.4.260.0080.00816.61
7.4.250.0140.00416.48
7.4.240.0150.00416.63
7.4.230.0170.00016.55
7.4.220.0080.00816.54
7.4.210.0040.01116.50
7.4.200.0100.00516.44
7.4.190.0150.00016.58
7.4.180.0090.00616.55
7.4.160.0080.00816.67
7.4.150.0130.00316.47
7.4.140.0080.00616.40
7.4.130.0100.00516.49
7.4.120.0110.00416.47
7.4.110.0070.00716.43
7.4.100.0070.00216.52
7.4.90.0020.00416.45
7.4.80.0000.00716.56
7.4.70.0030.00316.41
7.4.60.0080.00016.34
7.4.50.0040.00416.15
7.4.40.0090.00316.35
7.4.30.0040.00416.45
7.4.20.0090.00016.49
7.4.10.0000.00816.18
7.4.00.0060.00316.45

preferences:
109.04 ms | 403 KiB | 5 Q