3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "credit_card": { "cvc": "123", "expiry": { "month": "12", "year": "2019" }, "name": "Julian", "number": "5123450000000008", "token": null }, "amount": "10", "currency": "AUD", "gateway": { "line_of_business": "eWallet", "service": "default", "username": null }, "external_id": "my external id", "reference": "julian test", "remitter_name": null, "request_id": "1529561070", "statement_description": null, "security_id": null }'; $array = json_decode($json, true); function array_filter_recursive($array) { $array = array_filter($array); foreach ($array as $key => $value) { if (!is_array($value)) { continue; } $array = array_filter_recursive($value); } return $array; } var_dump(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.0120.00916.50
8.3.50.0120.00318.03
8.3.40.0140.00018.54
8.3.30.0070.00718.58
8.3.20.0090.00019.01
8.3.10.0080.00020.73
8.3.00.0030.00523.66
8.2.180.0030.01218.16
8.2.170.0120.00322.96
8.2.160.0090.00620.75
8.2.150.0050.00324.18
8.2.140.0060.00324.66
8.2.130.0000.00820.82
8.2.120.0070.00026.35
8.2.110.0090.00019.30
8.2.100.0060.00717.84
8.2.90.0000.00819.06
8.2.80.0040.00417.97
8.2.70.0030.00617.80
8.2.60.0040.00417.78
8.2.50.0040.00418.10
8.2.40.0070.00019.30
8.2.30.0040.00419.37
8.2.20.0000.00818.07
8.2.10.0000.00718.21
8.2.00.0000.00819.48
8.1.280.0070.01125.92
8.1.270.0040.00423.91
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0060.00322.74
8.1.230.0090.00318.92
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0000.00917.35
8.1.190.0030.00617.36
8.1.180.0000.00818.10
8.1.170.0000.01018.61
8.1.160.0050.00318.76
8.1.150.0040.00418.94
8.1.140.0070.00017.61
8.1.130.0000.00719.02
8.1.120.0000.00717.50
8.1.110.0090.00017.45
8.1.100.0000.00717.48
8.1.90.0000.00817.36
8.1.80.0040.00417.51
8.1.70.0030.00317.48
8.1.60.0090.00017.66
8.1.50.0070.00317.42
8.1.40.0000.00817.55
8.1.30.0080.00017.58
8.1.20.0040.00417.66
8.1.10.0000.00717.49
8.1.00.0030.00617.40
8.0.300.0060.00318.78
8.0.290.0000.00716.63
8.0.280.0040.00418.46
8.0.270.0030.00317.34
8.0.260.0060.00317.31
8.0.250.0030.00617.00
8.0.240.0000.00717.01
8.0.230.0070.00016.94
8.0.220.0020.00516.89
8.0.210.0040.00416.80
8.0.200.0030.00316.93
8.0.190.0050.00216.94
8.0.180.0000.00716.86
8.0.170.0030.00716.94
8.0.160.0000.00816.90
8.0.150.0050.00216.83
8.0.140.0030.00316.69
8.0.130.0000.00513.23
8.0.120.0040.00416.88
8.0.110.0000.00716.89
8.0.100.0040.00416.93
8.0.90.0000.00716.77
8.0.80.0060.01116.95
8.0.70.0000.00816.89
8.0.60.0080.00016.77
8.0.50.0000.00716.85
8.0.30.0110.00717.15
8.0.20.0130.00617.40
8.0.10.0000.00717.07
8.0.00.0110.00616.79
7.4.330.0050.00015.55
7.4.320.0000.00716.53
7.4.300.0040.00416.40
7.4.290.0030.00316.59
7.4.280.0030.00616.39
7.4.270.0030.00316.62
7.4.260.0070.00016.50
7.4.250.0000.00716.58
7.4.240.0030.00516.65
7.4.230.0040.00416.70
7.4.220.0030.00616.31
7.4.210.0060.00916.50
7.4.200.0000.00716.61
7.4.160.0120.00716.62
7.4.140.0110.00917.86
7.4.130.0120.00616.32
7.4.120.0080.01016.55
7.4.110.0090.00916.48
7.4.100.0140.00316.36
7.4.90.0160.00716.36
7.4.80.0170.00619.39
7.4.70.0060.00316.55
7.4.60.0130.00316.48
7.4.50.0060.00916.41
7.4.40.0070.01416.55
7.4.00.0030.01015.21
7.3.330.0000.00513.13
7.3.320.0060.00013.16
7.3.310.0000.00616.20
7.3.300.0000.00716.35
7.3.290.0030.00316.16
7.3.280.0090.00916.27
7.3.260.0120.00516.36
7.3.240.0100.00816.51
7.3.230.0320.01716.24
7.3.210.0070.01516.48
7.3.200.0100.01416.40
7.3.190.0140.00716.57
7.3.180.0060.01116.32
7.3.170.0130.00316.48
7.3.160.0060.01016.43
7.2.330.0150.00416.75
7.2.320.0040.01316.49
7.2.310.0190.00316.73
7.2.300.0070.01616.60
7.2.290.0140.00716.52
7.2.70.0730.01114.71
7.2.60.0620.00714.85
7.2.50.0620.00315.02
7.2.40.0670.00314.94
7.2.30.0670.00315.02
7.2.20.0670.00715.00
7.2.10.0870.01214.80
7.2.00.0590.01014.77
7.1.200.0080.00415.82
7.1.170.0590.00713.67
7.1.160.0810.01313.92
7.1.150.0870.00613.82
7.1.140.0800.01013.51
7.1.130.0920.01113.62
7.1.120.0960.00613.50
7.1.110.0660.00713.71
7.1.100.0620.00713.78
7.1.90.1380.00913.92
7.1.80.0790.01413.44
7.1.70.1350.00313.71
7.1.60.1190.01031.76
7.1.50.1270.01331.71
7.1.40.1290.01031.84
7.1.30.1770.02331.48
7.1.20.1560.00331.73
7.1.10.1470.00613.73
7.1.00.1180.01013.50

preferences:
55.39 ms | 401 KiB | 5 Q