3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{"details":"http://github.com/adamcooke/vat-rates","version":null,"rates":[{"name":"Spain","code":"ES","country_code":"ES","periods":[{"effective_from":"0000-01-01","rates":{"super_reduced":4.0,"reduced":10.0,"standard":21.0}}]},{"name":"Bulgaria","code":"BG","country_code":"BG","periods":[{"effective_from":"0000-01-01","rates":{"reduced":9.0,"standard":20.0}}]},{"name":"Hungary","code":"HU","country_code":"HU","periods":[{"effective_from":"0000-01-01","rates":{"reduced1":5.0,"reduced2":18.0,"standard":27.0}}]},{"name":"Latvia","code":"LV","country_code":"LV","periods":[{"effective_from":"0000-01-01","rates":{"reduced":12.0,"standard":21.0}}]},{"name":"Poland","code":"PL","country_code":"PL","periods":[{"effective_from":"0000-01-01","rates":{"reduced1":5.0,"reduced2":8.0,"standard":23.0}}]},{"name":"United Kingdom","code":"UK","country_code":"GB","periods":[{"effective_from":"2011-01-04","rates":{"standard":20.0,"reduced":5.0}}]},{"name":"Czech Republic","code":"CZ","country_code":"CZ","periods":[{"effective_from":"0000-01-01","rates":{"reduced":15.0,"standard":21.0}}]},{"name":"Malta","code":"MT","country_code":"MT","periods":[{"effective_from":"0000-01-01","rates":{"reduced1":5.0,"reduced2":7.0,"standard":18.0}}]},{"name":"Italy","code":"IT","country_code":"IT","periods":[{"effective_from":"0000-01-01","rates":{"super_reduced":4.0,"reduced":10.0,"standard":22.0}}]},{"name":"Slovenia","code":"SI","country_code":"SI","periods":[{"effective_from":"0000-01-01","rates":{"reduced":9.5,"standard":22.0}}]},{"name":"Ireland","code":"IE","country_code":"IE","periods":[{"effective_from":"0000-01-01","rates":{"super_reduced":4.8,"reduced1":9.0,"reduced2":13.5,"standard":23.0,"parking":13.5}}]},{"name":"Sweden","code":"SE","country_code":"SE","periods":[{"effective_from":"0000-01-01","rates":{"reduced1":6.0,"reduced2":12.0,"standard":25.0}}]},{"name":"Denmark","code":"DK","country_code":"DK","periods":[{"effective_from":"0000-01-01","rates":{"standard":25.0}}]},{"name":"Finland","code":"FI","country_code":"FI","periods":[{"effective_from":"0000-01-01","rates":{"reduced1":10.0,"reduced2":14.0,"standard":24.0}}]},{"name":"Cyprus","code":"CY","country_code":"CY","periods":[{"effective_from":"0000-01-01","rates":{"reduced1":5.0,"reduced2":9.0,"standard":19.0}}]},{"name":"Luxembourg","code":"LU","country_code":"LU","periods":[{"effective_from":"2016-01-01","rates":{"super_reduced":3.0,"reduced1":8.0,"standard":17.0,"parking":13.0}},{"effective_from":"2015-01-01","rates":{"super_reduced":3.0,"reduced1":8.0,"reduced2":14.0,"standard":17.0,"parking":12.0}},{"effective_from":"0000-01-01","rates":{"super_reduced":3.0,"reduced1":6.0,"reduced2":12.0,"standard":15.0,"parking":12.0}}]},{"name":"Romania","code":"RO","country_code":"RO","periods":[{"effective_from":"2017-01-01","rates":{"reduced1":5.0,"reduced2":9.0,"standard":19.0}},{"effective_from":"2016-01-01","rates":{"reduced1":5.0,"reduced2":9.0,"standard":20.0}},{"effective_from":"0000-01-01","rates":{"reduced1":5.0,"reduced2":9.0,"standard":24.0}}]},{"name":"Estonia","code":"EE","country_code":"EE","periods":[{"effective_from":"0000-01-01","rates":{"reduced":9.0,"standard":20.0}}]},{"name":"Greece","code":"EL","country_code":"GR","periods":[{"effective_from":"2016-06-01","rates":{"reduced1":6.0,"reduced2":13.5,"standard":24.0}},{"effective_from":"2016-01-01","rates":{"reduced1":6.0,"reduced2":13.5,"standard":23.0}},{"effective_from":"0000-01-01","rates":{"reduced1":6.5,"reduced2":13.0,"standard":23.0}}]},{"name":"Lithuania","code":"LT","country_code":"LT","periods":[{"effective_from":"0000-01-01","rates":{"reduced1":5.0,"reduced2":9.0,"standard":21.0}}]},{"name":"France","code":"FR","country_code":"FR","periods":[{"effective_from":"2014-01-01","rates":{"super_reduced":2.1,"reduced1":5.5,"reduced2":10.0,"standard":20.0}},{"effective_from":"2012-01-01","rates":{"super_reduced":2.1,"reduced1":5.5,"reduced2":7.0,"standard":19.6}},{"effective_from":"0000-01-01","rates":{"super_reduced":2.1,"reduced1":5.5,"standard":19.6}}]},{"name":"Croatia","code":"HR","country_code":"HR","periods":[{"effective_from":"0000-01-01","rates":{"reduced1":5.0,"reduced2":13.0,"standard":25.0}}]},{"name":"Belgium","code":"BE","country_code":"BE","periods":[{"effective_from":"0000-01-01","rates":{"reduced1":6.0,"reduced2":12.0,"standard":21.0,"parking":12.0}}]},{"name":"Netherlands","code":"NL","country_code":"NL","periods":[{"effective_from":"2012-10-01","rates":{"reduced":6.0,"standard":21.0}},{"effective_from":"0000-01-01","rates":{"reduced":6.0,"standard":19.0}}]},{"name":"Slovakia","code":"SK","country_code":"SK","periods":[{"effective_from":"0000-01-01","rates":{"reduced":10.0,"standard":20.0}}]},{"name":"Germany","code":"DE","country_code":"DE","periods":[{"effective_from":"0000-01-01","rates":{"reduced":7.0,"standard":19.0}}]},{"name":"Portugal","code":"PT","country_code":"PT","periods":[{"effective_from":"0000-01-01","rates":{"reduced1":6.0,"reduced2":13.0,"standard":23.0,"parking":13.0}}]},{"name":"Austria","code":"AT","country_code":"AT","periods":[{"effective_from":"2016-01-01","rates":{"reduced1":10.0,"reduced2":13.0,"standard":20.0,"parking":13.0}},{"effective_from":"0000-01-01","rates":{"reduced":10.0,"standard":20.0,"parking":12.0}}]}]}'; $array = json_decode($json,1); foreach($array['rates'] as $k=>$v){ echo $v['periods'][0]['rates']['standard'].PHP_EOL; } // print_r($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.0060.01016.50
8.3.50.0100.00716.26
8.3.40.0180.00018.79
8.3.30.0150.00018.62
8.3.20.0040.00420.56
8.3.10.0030.00620.55
8.3.00.0000.00819.38
8.2.180.0040.01118.38
8.2.170.0030.01718.95
8.2.160.0080.00822.96
8.2.150.0140.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00419.25
8.2.120.0090.00026.35
8.2.110.0120.00919.31
8.2.100.0090.00317.84
8.2.90.0040.00420.61
8.2.80.0000.00918.16
8.2.70.0040.00418.05
8.2.60.0080.00018.22
8.2.50.0000.00918.10
8.2.40.0030.00619.44
8.2.30.0060.00319.33
8.2.20.0050.00218.25
8.2.10.0070.00019.60
8.2.00.0000.00818.16
8.1.280.0070.01325.92
8.1.270.0030.00521.99
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0040.00419.34
8.1.230.0090.00321.16
8.1.220.0080.00017.74
8.1.210.0090.00518.77
8.1.200.0000.00817.48
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0070.00018.86
8.1.150.0030.00518.95
8.1.140.0040.00420.33
8.1.130.0030.00320.33
8.1.120.0040.00417.58
8.1.110.0000.00717.53
8.1.100.0040.00417.41
8.1.90.0060.00617.49
8.1.80.0030.00517.53
8.1.70.0070.00017.56
8.1.60.0000.00917.58
8.1.50.0080.00017.57
8.1.40.0060.00317.58
8.1.30.0000.00817.62
8.1.20.0030.00617.78
8.1.10.0000.00917.54
8.1.00.0040.00417.47
8.0.300.0080.00020.07
8.0.290.0080.00016.75
8.0.280.0080.00018.43
8.0.270.0000.01017.22
8.0.260.0050.00318.42
8.0.250.0070.00017.03
8.0.240.0040.00416.91
8.0.230.0050.00217.01
8.0.220.0030.00316.90
8.0.210.0070.00316.85
8.0.200.0070.00017.01
8.0.190.0030.00517.05
8.0.180.0000.00816.89
8.0.170.0060.00316.86
8.0.160.0040.00416.98
8.0.150.0040.00416.95
8.0.140.0040.00416.83
8.0.130.0000.00613.38
8.0.120.0000.00816.89
8.0.110.0040.00416.89
8.0.100.0000.00816.91
8.0.90.0070.00016.78
8.0.80.0070.01516.95
8.0.70.0050.00316.87
8.0.60.0050.00216.89
8.0.50.0000.00817.00
8.0.30.0120.00617.26
8.0.20.0080.01117.08
8.0.10.0030.00517.08
8.0.00.0120.00816.85
7.4.330.0000.00515.55
7.4.320.0000.00716.51
7.4.300.0060.00016.64
7.4.290.0070.00316.65
7.4.280.0040.00416.69
7.4.270.0000.00816.55
7.4.260.0070.00016.60
7.4.250.0000.00816.55
7.4.240.0040.00416.65
7.4.230.0000.00816.57
7.4.220.0050.00316.56
7.4.210.0070.01016.67
7.4.200.0000.00716.70
7.4.160.0090.00616.62
7.4.140.0090.00917.86
7.4.130.0110.00616.61
7.4.120.0120.00616.63
7.4.110.0110.00616.36
7.4.100.0130.00616.57
7.4.90.0110.00716.55
7.4.80.0060.01119.39
7.4.70.0080.01216.72
7.4.60.0100.01116.40
7.4.50.0090.00316.59
7.4.40.0130.00616.77
7.4.10.0090.00916.42
7.4.00.0060.01015.85
7.3.330.0030.00313.17
7.3.320.0060.00013.17
7.3.310.0020.00516.31
7.3.300.0060.00016.35
7.3.290.0040.00416.23
7.3.280.0160.00316.32
7.3.260.0100.00916.48
7.3.240.0130.00616.40
7.3.230.0050.01116.38
7.3.210.0060.01116.51
7.3.200.0040.01216.48
7.3.190.0160.00316.60
7.3.180.0190.00616.41
7.3.170.0110.01016.61
7.3.160.0090.00916.57
7.3.130.0030.01216.47
7.3.120.0100.00716.51
7.3.110.0040.01816.55
7.3.100.0110.00716.36
7.3.90.0080.00616.46
7.3.80.0030.01416.35
7.3.70.0030.01016.41
7.3.60.0000.01016.50
7.3.50.0040.01116.41
7.3.40.0070.00716.29
7.3.30.0030.00616.20
7.3.20.2970.00916.36
7.3.10.0570.00816.25
7.3.00.3750.01016.43
7.2.330.0090.00916.68
7.2.320.0130.00916.77
7.2.310.0090.00916.41
7.2.300.0100.01216.54
7.2.290.0160.00416.79
7.2.260.0000.01516.77
7.2.250.0100.01016.87
7.2.240.0070.01416.59
7.2.230.0060.01316.71
7.2.220.0100.00716.61
7.2.210.0030.01216.70
7.2.200.0080.00316.68
7.2.190.0100.00316.67
7.2.180.0030.01716.72
7.2.170.0030.01216.52
7.2.160.0070.00716.62
7.2.150.0470.01016.55
7.2.140.1180.00516.63
7.2.130.0160.00716.68
7.2.120.0280.00616.67
7.2.110.1670.00816.61
7.2.100.3200.00616.83
7.2.90.2820.00916.78
7.2.80.2080.01016.55
7.2.70.3010.00716.80
7.2.60.3020.00516.79
7.2.50.2680.00516.52
7.2.40.2370.00516.80
7.2.30.2330.00716.72
7.2.20.1920.01016.63
7.2.10.2330.01016.50
7.2.00.2310.00916.85
7.1.330.0100.00617.22
7.1.320.0100.00717.49
7.1.310.0070.00617.38
7.1.300.0070.01017.39
7.1.290.0000.01417.20
7.1.280.0040.01117.41
7.1.270.0070.00717.34
7.1.260.0120.00317.27
7.1.250.2240.01215.60
7.1.240.0030.00717.30
7.1.230.0060.00917.33
7.1.220.0030.01217.17
7.1.210.0030.00617.21
7.1.200.0030.01017.39
7.1.190.0030.01217.20
7.1.180.0060.00617.29
7.1.170.0030.00617.15
7.1.160.0000.01417.34
7.1.150.0060.01017.23
7.1.140.0060.00917.34
7.1.130.0030.01417.19
7.1.120.0040.01117.19
7.1.110.0100.00317.32
7.1.100.0000.01117.11
7.1.90.0070.00717.34
7.1.80.0030.00717.18
7.1.70.0080.00417.37
7.1.60.0000.01217.20
7.1.50.0040.00717.31
7.1.40.0030.00617.25
7.1.30.0040.01117.43
7.1.20.0030.00917.38
7.1.10.0030.01117.25
7.1.00.0030.00617.28

preferences:
62.06 ms | 401 KiB | 5 Q