3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "UniqueId": "PO3589472", "FareType": 2, "BookedBy": "Api ", "OrderBy": "Api ", "ClientBalance": 0, "Error": null, "Success": true, "TktTimeLimit": "2022-08-10T14:11:45", "Category": 21, "Status": 21, "RefundMethod": 1, "TravelItinerary": { "ItineraryInfo": { "ItineraryPricing": { "BaseFare": 8469250, "ServiceTax": 0, "TotalTax": 993000, "TotalFare": 9462250, "TotalCommission": 0, "Currency": "IRR" }, "CustomerInfoes": [ { "Customer": { "Gender": 0, "PassengerType": 1, "PassportNumber": "", "NationalId": "1829961233", "Nationality": "IR", "DateOfBirth": "1996-07-08T00:00:00", "PassportExpireDate": "0001-01-01T00:00:00", "PassportIssueCountry": "IR", "PassportIssueDate": "2022-08-10T00:00:00", "PaxName": { "PassengerFirstName": "MAJID", "PassengerMiddleName": null, "PassengerLastName": "MAJIDIFAR", "PassengerTitle": 0 } }, "ETickets": "8151405444745", "ETicketNumbers": [ { "ETicketNumber": "8151405444745", "EticketStatus": 1, "IsRefunded": false, "DateOfIssue": "2022-08-10T13:58:47", "AirlinePnr": "TXNXM", "TotalRefund": 0 } ] } ], "ReservationItems": [ { "AirEquipmentType": "737", "AirlinePnr": "TXNXM", "ArrivalAirportLocationCode": "ABD", "ArrivalDateTime": "2022-08-17T23:25:00", "ArrivalTerminal": "", "Baggage": "20KG", "DepartureAirportLocationCode": "THR", "DepartureDateTime": "2022-08-17T22:05:00", "DepartureTerminal": "Terminal 4", "FlightNumber": "3750", "JourneyDuration": "01:20", "JourneyDurationPerMinute": 0, "MarketingAirlineCode": "EP", "OperatingAirlineCode": "EP", "ResBookDesigCode": "Y", "StopQuantity": 0, "IsCharter": false, "TechnicalStops": [], "IsReturn": false, "CabinClassCode": 1 } ], "TripDetailPtcFareBreakdowns": [ { "PassengerTypeQuantity": { "PassengerType": 1, "Quantity": 1 }, "TripDetailPassengerFare": { "BaseFare": 8469250, "ServiceTax": 0, "Tax": 993000, "TotalFare": 9462250, "Commission": 0, "Currency": "IRR" } } ], "PhoneNumber": "09359276735", "Email": "info@iran-tech.com", "ItineraryFareFamily": null }, "BookingNotes": [], "Services": [] }, "ValidatingAirlineCode": "EP", "DirectionInd": 1, "OnlineCheckIn": false, "AirRemark": [], "curl_error": false}'; $array = json_decode($json, true); function array_filter_recursive(array $input): array { foreach ($input as &$value) { if (is_array($value)) { $value = array_filter_recursive($value); } } return array_filter($input, fn($v) => $v && $v !== 'Api '); } var_export(array_filter_recursive($array));

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.3.60.0160.00318.43
8.3.50.0070.01120.20
8.3.40.0030.01020.34
8.3.30.0070.00718.78
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0050.00326.16
8.2.180.0060.00925.92
8.2.170.0070.00718.99
8.2.160.0080.00622.96
8.2.150.0040.00425.66
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0000.00826.16
8.2.110.0090.00619.17
8.2.100.0110.00017.91
8.2.90.0030.00517.88
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0080.00018.04
8.2.50.0040.00419.15
8.2.40.0050.00318.03
8.2.30.0080.00017.97
8.2.20.0000.00719.29
8.2.10.0050.00218.04
8.2.00.0040.00419.25
8.1.280.0100.01025.92
8.1.270.0030.01321.99
8.1.260.0080.00026.35
8.1.250.0030.00528.09
8.1.240.0130.00022.16
8.1.230.0120.00020.81
8.1.220.0080.00017.78
8.1.210.0030.00618.77
8.1.200.0060.00317.38
8.1.190.0050.00316.98
8.1.180.0060.00318.10
8.1.170.0030.00618.52
8.1.160.0030.00618.96
8.1.150.0060.00318.58
8.1.140.0040.00417.47
8.1.130.0000.00718.96
8.1.120.0080.00817.49
8.1.110.0130.00617.46
8.1.100.0100.00617.29
8.1.90.0070.01017.48
8.1.80.0180.00017.44
8.1.70.0110.00617.39
8.1.60.0100.01017.37
8.1.50.0150.00217.52
8.1.40.0140.00617.50
8.1.30.0170.00317.62
8.1.20.0190.00217.65
8.1.10.0090.01217.47
8.1.00.0090.00917.43
8.0.300.0080.00019.89
8.0.290.0040.00416.75
8.0.280.0040.00418.43
8.0.270.0000.00717.15
8.0.260.0060.00018.38
8.0.250.0080.00816.91
8.0.240.0000.01516.86
8.0.230.0000.01716.90
8.0.220.0110.00516.73
8.0.210.0080.00816.90
8.0.200.0060.01116.89
8.0.190.0140.00316.91
8.0.180.0180.00016.88
8.0.170.0120.00416.92
8.0.160.0130.00316.71
8.0.150.0150.00016.88
8.0.140.0070.00716.79
8.0.130.0080.00816.71
8.0.120.0130.00416.84
8.0.110.0070.00716.93
8.0.100.0100.00516.78
8.0.90.0110.00416.70
8.0.80.0110.00416.81
8.0.70.0150.00016.80
8.0.60.0000.01516.75
8.0.50.0110.00416.75
8.0.30.0080.00816.82
8.0.20.0100.00716.79
8.0.10.0120.00416.99
7.4.330.0070.00015.55
7.4.320.0060.00616.50
7.4.300.0120.00616.46
7.4.290.0050.01116.53
7.4.280.0110.00716.35
7.4.270.0070.01016.45
7.4.260.0130.00416.59
7.4.250.0150.00216.43
7.4.240.0040.00816.36
7.4.230.0140.00016.54
7.4.220.0110.00016.50
7.4.210.0100.00016.53
7.4.200.0070.00416.16
7.4.190.0070.00516.43
7.4.180.0080.00416.08
7.4.160.0050.00516.47
7.4.150.0040.00816.47
7.4.140.0090.00316.40
7.4.130.0090.00316.56
7.4.120.0090.00316.41
7.4.110.0060.00616.41
7.4.100.0110.00016.52
7.4.90.0000.01115.86
7.4.80.0080.00316.38
7.4.70.0000.01116.40
7.4.60.0070.00416.44
7.4.50.0050.00516.33
7.4.40.0050.00516.37
7.4.30.0030.00616.44
7.4.20.0080.00416.41
7.4.10.0000.01015.91
7.4.00.0070.00216.50

preferences:
51.2 ms | 400 KiB | 5 Q