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 test_print($item, $key) { echo "$key holds $item\n"; } array_walk_recursive($array, 'test_print');

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.0130.01016.25
8.3.50.0140.00017.86
8.3.40.0040.01118.79
8.3.30.0060.01018.67
8.3.20.0070.00018.98
8.3.10.0000.00820.91
8.3.00.0000.00823.48
8.2.180.0070.01418.42
8.2.170.0070.00722.96
8.2.160.0110.00420.82
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0040.00421.06
8.2.120.0040.00426.35
8.2.110.0070.00420.35
8.2.100.0040.00817.71
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0000.00817.89
8.2.60.0050.00317.93
8.2.50.0080.00018.10
8.2.40.0040.00419.29
8.2.30.0040.00419.13
8.2.20.0060.00317.99
8.2.10.0030.00718.17
8.2.00.0000.00719.38
8.1.280.0110.00325.92
8.1.270.0070.00023.72
8.1.260.0060.00326.35
8.1.250.0050.00328.09
8.1.240.0060.00322.25
8.1.230.0070.00319.05
8.1.220.0000.00817.77
8.1.210.0000.00818.77
8.1.200.0060.00317.00
8.1.190.0040.00416.87
8.1.180.0030.00518.10
8.1.170.0100.00018.65
8.1.160.0040.00418.86
8.1.150.0080.00018.83
8.1.140.0040.00417.55
8.1.130.0000.00719.01
8.1.120.0000.00717.41
8.1.110.0040.00717.30
8.1.100.0040.00417.43
8.1.90.0040.00417.41
8.1.80.0000.00717.41
8.1.70.0030.00317.38
8.1.60.0080.00017.39
8.1.50.0130.00017.49
8.1.40.0060.00317.41
8.1.30.0070.00017.48
8.1.20.0040.00417.46
8.1.10.0060.00317.59
8.1.00.0040.00417.34
8.0.300.0000.00818.77
8.0.290.0000.00716.63
8.0.280.0030.00318.36
8.0.270.0070.00017.16
8.0.260.0030.00317.21
8.0.250.0030.00617.01
8.0.240.0030.00316.96
8.0.230.0030.00317.00
8.0.220.0040.00416.90
8.0.210.0000.00716.79
8.0.200.0030.00316.89
8.0.190.0080.00016.94
8.0.180.0070.00016.91
8.0.170.0080.00416.93
8.0.160.0000.00916.87
8.0.150.0000.00816.85
8.0.140.0080.00016.79
8.0.130.0000.00513.25
8.0.120.0000.00816.88
8.0.110.0050.00316.74
8.0.100.0070.00016.73
8.0.90.0070.00016.94
8.0.80.0080.00916.87
8.0.70.0030.00516.88
8.0.60.0040.00416.84
8.0.50.0070.00016.77
8.0.30.0090.01016.98
8.0.20.0080.01217.40
8.0.10.0070.00016.96
8.0.00.0150.00716.72
7.4.330.0030.00315.55
7.4.320.0000.00616.54
7.4.300.0060.00016.38
7.4.290.0030.00316.52
7.4.280.0000.00716.44
7.4.270.0000.00616.44
7.4.260.0000.00816.29
7.4.250.0090.00016.51
7.4.240.0040.00316.42
7.4.230.0060.00016.43
7.4.220.0050.00516.54
7.4.210.0060.01016.48
7.4.200.0000.00716.47
7.4.160.0070.01116.42
7.4.140.0120.00917.86
7.4.130.0130.00516.44
7.4.120.0090.01116.53
7.4.110.0120.00616.37
7.4.100.0140.00916.34
7.4.90.0180.00616.41
7.4.80.0100.01319.39
7.4.70.0100.01016.37
7.4.60.0040.01116.50
7.4.50.0030.01016.35
7.4.40.0100.00916.37
7.4.00.0090.00615.01
7.3.330.0000.00513.18
7.3.320.0030.00313.30
7.3.310.0040.00416.06
7.3.300.0070.00016.23
7.3.290.0070.00016.11
7.3.280.0080.00716.22
7.3.260.0070.01016.35
7.3.240.0100.00716.35
7.3.230.0050.02016.53
7.3.210.0060.01216.46
7.3.200.0110.00616.57
7.3.190.0090.01116.45
7.3.180.0130.00316.30
7.3.170.0090.01216.48
7.3.160.0120.00916.33
7.2.330.0090.01316.68
7.2.320.0090.01216.49
7.2.310.0060.01016.68
7.2.300.0140.01116.32
7.2.290.0100.01216.46
7.2.70.0170.00814.70
7.2.60.0180.00614.89
7.2.50.0250.00714.93
7.2.40.0250.00615.03
7.2.30.0160.01314.69
7.2.20.0190.00514.79
7.2.10.0180.00714.87
7.2.00.0160.01014.97
7.1.200.0040.01215.66
7.1.170.0180.01113.70
7.1.160.0140.01013.64
7.1.150.0150.00713.78
7.1.140.0070.01713.62
7.1.130.0230.00713.74
7.1.120.0170.00613.47
7.1.110.0170.00713.94
7.1.100.0180.00613.79
7.1.90.0150.00813.88
7.1.80.0160.00713.70
7.1.70.0110.01113.71
7.1.60.0400.00631.67
7.1.50.0340.00931.57
7.1.40.0310.01231.34
7.1.30.0340.01231.79
7.1.20.0500.00931.63
7.1.10.1080.01013.58
7.1.00.0150.00713.72

preferences:
26.43 ms | 401 KiB | 5 Q