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, &$array) { if ($item === null) unset($array[$key]); } array_walk_recursive($array, 'test_print'); var_dump($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.70.0120.00616.50
8.3.60.0160.00716.62
8.3.50.0040.01117.96
8.3.40.0150.00019.02
8.3.30.0120.00318.73
8.3.20.0030.00519.16
8.3.10.0070.00020.98
8.3.00.0030.00523.54
8.2.180.0130.00918.29
8.2.170.0120.00322.96
8.2.160.0070.00720.80
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0050.00321.04
8.2.120.0040.00426.35
8.2.110.0070.00320.52
8.2.100.0080.00417.84
8.2.90.0040.00419.22
8.2.80.0040.00417.97
8.2.70.0040.00417.80
8.2.60.0050.00317.80
8.2.50.0030.00518.10
8.2.40.0040.00419.34
8.2.30.0000.00719.25
8.2.20.0040.00418.02
8.2.10.0040.00417.96
8.2.00.0000.00719.41
8.1.280.0070.00725.92
8.1.270.0080.00023.84
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00621.24
8.1.230.0040.00718.83
8.1.220.0030.00517.76
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0030.00617.23
8.1.180.0040.00418.10
8.1.170.0070.00318.64
8.1.160.0040.00418.84
8.1.150.0050.00218.85
8.1.140.0040.00417.66
8.1.130.0070.00319.02
8.1.120.0050.00217.30
8.1.110.0050.00517.44
8.1.100.0050.00317.42
8.1.90.0000.00717.34
8.1.80.0000.00717.46
8.1.70.0000.00717.43
8.1.60.0080.00017.39
8.1.50.0040.00717.54
8.1.40.0030.00517.37
8.1.30.0070.00017.58
8.1.20.0000.00817.68
8.1.10.0070.00017.46
8.1.00.0030.00517.48
8.0.300.0070.00018.77
8.0.290.0030.00616.75
8.0.280.0030.00318.34
8.0.270.0000.00717.21
8.0.260.0060.00317.15
8.0.250.0030.00716.98
8.0.240.0030.00317.04
8.0.230.0030.00316.93
8.0.220.0070.00316.92
8.0.210.0030.00316.91
8.0.200.0070.00016.98
8.0.190.0000.00716.94
8.0.180.0040.00416.91
8.0.170.0000.01116.82
8.0.160.0000.00816.94
8.0.150.0040.00416.86
8.0.140.0000.00816.77
8.0.130.0050.00013.34
8.0.120.0050.00316.82
8.0.110.0050.00216.97
8.0.100.0040.00416.78
8.0.90.0040.00416.98
8.0.80.0060.01016.89
8.0.70.0000.00816.87
8.0.60.0020.00516.77
8.0.50.0000.00816.79
8.0.30.0110.00817.07
8.0.20.0100.00917.40
8.0.10.0040.00416.90
8.0.00.0100.00716.73
7.4.330.0030.00315.55
7.4.320.0030.00316.59
7.4.300.0000.00616.45
7.4.290.0070.00016.54
7.4.280.0030.00616.52
7.4.270.0030.00316.54
7.4.260.0030.00516.54
7.4.250.0040.00416.55
7.4.240.0040.00416.53
7.4.230.0000.00716.61
7.4.220.0030.00616.43
7.4.210.0070.00716.55
7.4.200.0000.00716.64
7.4.160.0100.00616.46
7.4.140.0110.01017.86
7.4.130.0070.01316.55
7.4.120.0110.00816.50
7.4.110.0120.00616.44
7.4.100.0060.01216.53
7.4.90.0060.01016.50
7.4.80.0120.01219.39
7.4.70.0100.01016.67
7.4.60.0090.00616.68
7.4.50.0070.00716.31
7.4.40.0090.01416.52
7.4.00.0060.01014.89
7.3.330.0000.00513.17
7.3.320.0060.00013.27
7.3.310.0070.00016.41
7.3.300.0060.00016.28
7.3.290.0000.00716.29
7.3.280.0070.00916.32
7.3.260.0100.00916.35
7.3.240.0090.00816.35
7.3.230.0160.00316.47
7.3.210.0100.00716.67
7.3.200.0080.01316.47
7.3.190.0100.00616.52
7.3.180.0130.00316.58
7.3.170.0130.00416.53
7.3.160.0090.01216.50
7.2.330.0080.00816.63
7.2.320.0070.01416.32
7.2.310.0080.00816.58
7.2.300.0190.00816.60
7.2.290.0130.00916.64
7.2.70.0230.00014.72
7.2.60.0270.00714.82
7.2.50.0160.00915.01
7.2.40.0190.01314.80
7.2.30.0340.00714.69
7.2.20.0280.00914.78
7.2.10.0220.00614.91
7.2.00.0250.01015.08
7.1.200.0060.00915.51
7.1.170.0160.00613.66
7.1.160.0190.00613.64
7.1.150.0250.00614.00
7.1.140.0210.00613.67
7.1.130.0250.01113.79
7.1.120.0710.00313.55
7.1.110.0110.01513.54
7.1.100.0140.01013.95
7.1.90.0170.00714.00
7.1.80.0140.01013.72
7.1.70.0130.01013.75
7.1.60.0510.01031.60
7.1.50.0550.00731.54
7.1.40.0480.01331.61
7.1.30.0310.01031.66
7.1.20.1280.00631.52
7.1.10.0170.00813.67
7.1.00.0240.00013.52

preferences:
66.76 ms | 400 KiB | 5 Q