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 === false || ($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.4.130.0130.00817.80
8.4.120.0130.00720.64
8.4.110.0100.01018.80
8.4.100.0150.00617.91
8.4.90.0070.00517.87
8.4.80.0130.00720.65
8.4.70.0160.00717.68
8.4.60.0120.00918.96
8.4.50.0170.00517.58
8.4.40.0160.00317.90
8.4.30.0040.00420.88
8.4.20.0090.00017.68
8.4.10.0090.00023.84
8.3.260.0140.00516.54
8.3.250.0110.00719.10
8.3.240.0130.00716.57
8.3.230.0140.00516.66
8.3.220.0100.00817.13
8.3.210.0050.01116.89
8.3.200.0050.00418.49
8.3.190.0100.00718.93
8.3.180.0150.00516.54
8.3.170.0040.00419.02
8.3.160.0100.00916.56
8.3.150.0120.00620.82
8.3.140.0080.00019.05
8.3.130.0090.00018.42
8.3.120.0030.00619.06
8.3.110.0050.00318.07
8.3.100.0000.01016.73
8.3.90.0000.01026.77
8.3.80.0060.00318.18
8.3.70.0140.00416.58
8.3.60.0180.00418.40
8.3.50.0120.00920.29
8.3.40.0030.01020.34
8.3.30.0070.01018.84
8.3.20.0040.00424.18
8.3.10.0050.00324.66
8.3.00.0000.00826.16
8.2.290.0070.00420.52
8.2.280.0080.01018.40
8.2.270.0120.00617.03
8.2.260.0110.00417.02
8.2.250.0080.00018.49
8.2.240.0040.00419.00
8.2.230.0040.00420.94
8.2.220.0030.00624.06
8.2.210.0000.00826.77
8.2.200.0030.00616.36
8.2.190.0090.00918.38
8.2.180.0110.00725.92
8.2.170.0120.00318.95
8.2.160.0040.01522.96
8.2.150.0080.00025.66
8.2.140.0000.01624.66
8.2.130.0000.00726.16
8.2.120.0050.00326.16
8.2.110.0070.00321.03
8.2.100.0110.00017.72
8.2.90.0040.00418.16
8.2.80.0000.00818.22
8.2.70.0030.00517.63
8.2.60.0040.00417.50
8.2.50.0000.00817.75
8.2.40.0060.00318.22
8.2.30.0080.00018.01
8.2.20.0040.00421.03
8.2.10.0050.00318.12
8.2.00.0070.00019.39
8.1.330.0120.00722.19
8.1.320.0110.00816.09
8.1.310.0070.00718.59
8.1.300.0000.00918.68
8.1.290.0030.00630.84
8.1.280.0040.01125.92
8.1.270.0000.01020.48
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0090.00023.96
8.1.230.0060.00621.04
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0080.00017.35
8.1.180.0030.00518.10
8.1.170.0030.00618.91
8.1.160.0000.00718.86
8.1.150.0030.00618.59
8.1.140.0040.00417.48
8.1.130.0040.00419.15
8.1.120.0140.00417.39
8.1.110.0150.00317.50
8.1.100.0080.00417.33
8.1.90.0090.00317.44
8.1.80.0130.00317.37
8.1.70.0040.00917.48
8.1.60.0080.00317.36
8.1.50.0040.00717.47
8.1.40.0070.00717.53
8.1.30.0110.00017.70
8.1.20.0100.00317.52
8.1.10.0090.00517.45
8.1.00.0190.00017.52
8.0.300.0050.00320.03
8.0.290.0000.00816.75
8.0.280.0030.00318.38
8.0.270.0070.00017.28
8.0.260.0030.00316.85
8.0.250.0030.00616.97
8.0.240.0110.00416.85
8.0.230.0110.00416.85
8.0.220.0080.00816.78
8.0.210.0090.00616.88
8.0.200.0050.01016.81
8.0.190.0120.00316.86
8.0.180.0050.01016.87
8.0.170.0080.00816.97
8.0.160.0170.00016.85
8.0.150.0110.00416.68
8.0.140.0080.00616.88
8.0.130.0080.00816.73
8.0.120.0100.00516.88
8.0.110.0110.00016.93
8.0.100.0050.01016.89
8.0.90.0080.00816.92
8.0.80.0110.00416.87
8.0.70.0140.00016.83
8.0.60.0120.00416.88
8.0.50.0100.00516.72
8.0.30.0110.00516.86
8.0.20.0090.00616.97
8.0.10.0130.00317.06
7.4.330.0000.00615.55
7.4.320.0100.00716.64
7.4.300.0090.00916.67
7.4.290.0040.01216.63
7.4.280.0090.00416.64
7.4.270.0080.00816.62
7.4.260.0030.01216.61
7.4.250.0140.00316.46
7.4.240.0110.00616.43
7.4.230.0080.00416.59
7.4.220.0090.00516.48
7.4.210.0000.01016.21
7.4.200.0050.00516.51
7.4.190.0000.00916.51
7.4.180.0090.00216.38
7.4.160.0120.00316.50
7.4.150.0100.00516.41
7.4.140.0050.01016.56
7.4.130.0120.00316.45
7.4.120.0090.00616.57
7.4.110.0150.00016.48
7.4.100.0100.00516.43
7.4.90.0070.00716.48
7.4.80.0080.00816.47
7.4.70.0100.00316.29
7.4.60.0070.00716.43
7.4.50.0140.00016.35
7.4.40.0110.00416.38
7.4.30.0070.00716.30
7.4.20.0090.00516.41
7.4.10.0070.00816.63
7.4.00.0030.00716.39

preferences:
30.74 ms | 403 KiB | 5 Q