@ 2019-02-22T16:55:24Z <?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 as $k=>$v){
echo $v['rates'][0]['periods']['standard'].PHP_EOL;
}
print_r($array);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 8.0.0 - 8.0.30 , 8.1.0 - 8.1.27 , 8.2.0 - 8.2.17 , 8.3.0 - 8.3.4 Fatal error: Uncaught TypeError: Cannot access offset of type string on string in /in/YtRT1:6
Stack trace:
#0 {main}
thrown in /in/YtRT1 on line 6
Process exited with code 255 . Output for 7.4.0 - 7.4.33 Warning: Illegal string offset 'rates' in /in/YtRT1 on line 6
Warning: Illegal string offset 'periods' in /in/YtRT1 on line 6
Warning: Illegal string offset 'standard' in /in/YtRT1 on line 6
h
Notice: Trying to access array offset on value of type null in /in/YtRT1 on line 6
Notice: Trying to access array offset on value of type null in /in/YtRT1 on line 6
Notice: Trying to access array offset on value of type null in /in/YtRT1 on line 6
Notice: Trying to access array offset on value of type null in /in/YtRT1 on line 6
Notice: Undefined index: rates in /in/YtRT1 on line 6
Notice: Trying to access array offset on value of type null in /in/YtRT1 on line 6
Notice: Trying to access array offset on value of type null in /in/YtRT1 on line 6
Notice: Trying to access array offset on value of type null in /in/YtRT1 on line 6
Array
(
[details] => http://github.com/adamcooke/vat-rates
[version] =>
[rates] => Array
(
[0] => Array
(
[name] => Spain
[code] => ES
[country_code] => ES
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[super_reduced] => 4
[reduced] => 10
[standard] => 21
)
)
)
)
[1] => Array
(
[name] => Bulgaria
[code] => BG
[country_code] => BG
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 9
[standard] => 20
)
)
)
)
[2] => Array
(
[name] => Hungary
[code] => HU
[country_code] => HU
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 18
[standard] => 27
)
)
)
)
[3] => Array
(
[name] => Latvia
[code] => LV
[country_code] => LV
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 12
[standard] => 21
)
)
)
)
[4] => Array
(
[name] => Poland
[code] => PL
[country_code] => PL
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 8
[standard] => 23
)
)
)
)
[5] => Array
(
[name] => United Kingdom
[code] => UK
[country_code] => GB
[periods] => Array
(
[0] => Array
(
[effective_from] => 2011-01-04
[rates] => Array
(
[standard] => 20
[reduced] => 5
)
)
)
)
[6] => Array
(
[name] => Czech Republic
[code] => CZ
[country_code] => CZ
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 15
[standard] => 21
)
)
)
)
[7] => Array
(
[name] => Malta
[code] => MT
[country_code] => MT
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 7
[standard] => 18
)
)
)
)
[8] => Array
(
[name] => Italy
[code] => IT
[country_code] => IT
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[super_reduced] => 4
[reduced] => 10
[standard] => 22
)
)
)
)
[9] => Array
(
[name] => Slovenia
[code] => SI
[country_code] => SI
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 9.5
[standard] => 22
)
)
)
)
[10] => Array
(
[name] => Ireland
[code] => IE
[country_code] => IE
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[super_reduced] => 4.8
[reduced1] => 9
[reduced2] => 13.5
[standard] => 23
[parking] => 13.5
)
)
)
)
[11] => Array
(
[name] => Sweden
[code] => SE
[country_code] => SE
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 6
[reduced2] => 12
[standard] => 25
)
)
)
)
[12] => Array
(
[name] => Denmark
[code] => DK
[country_code] => DK
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[standard] => 25
)
)
)
)
[13] => Array
(
[name] => Finland
[code] => FI
[country_code] => FI
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 10
[reduced2] => 14
[standard] => 24
)
)
)
)
[14] => Array
(
[name] => Cyprus
[code] => CY
[country_code] => CY
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 9
[standard] => 19
)
)
)
)
[15] => Array
(
[name] => Luxembourg
[code] => LU
[country_code] => LU
[periods] => Array
(
[0] => Array
(
[effective_from] => 2016-01-01
[rates] => Array
(
[super_reduced] => 3
[reduced1] => 8
[standard] => 17
[parking] => 13
)
)
[1] => Array
(
[effective_from] => 2015-01-01
[rates] => Array
(
[super_reduced] => 3
[reduced1] => 8
[reduced2] => 14
[standard] => 17
[parking] => 12
)
)
[2] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[super_reduced] => 3
[reduced1] => 6
[reduced2] => 12
[standard] => 15
[parking] => 12
)
)
)
)
[16] => Array
(
[name] => Romania
[code] => RO
[country_code] => RO
[periods] => Array
(
[0] => Array
(
[effective_from] => 2017-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 9
[standard] => 19
)
)
[1] => Array
(
[effective_from] => 2016-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 9
[standard] => 20
)
)
[2] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 9
[standard] => 24
)
)
)
)
[17] => Array
(
[name] => Estonia
[code] => EE
[country_code] => EE
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 9
[standard] => 20
)
)
)
)
[18] => Array
(
[name] => Greece
[code] => EL
[country_code] => GR
[periods] => Array
(
[0] => Array
(
[effective_from] => 2016-06-01
[rates] => Array
(
[reduced1] => 6
[reduced2] => 13.5
[standard] => 24
)
)
[1] => Array
(
[effective_from] => 2016-01-01
[rates] => Array
(
[reduced1] => 6
[reduced2] => 13.5
[standard] => 23
)
)
[2] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 6.5
[reduced2] => 13
[standard] => 23
)
)
)
)
[19] => Array
(
[name] => Lithuania
[code] => LT
[country_code] => LT
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 9
[standard] => 21
)
)
)
)
[20] => Array
(
[name] => France
[code] => FR
[country_code] => FR
[periods] => Array
(
[0] => Array
(
[effective_from] => 2014-01-01
[rates] => Array
(
[super_reduced] => 2.1
[reduced1] => 5.5
[reduced2] => 10
[standard] => 20
)
)
[1] => Array
(
[effective_from] => 2012-01-01
[rates] => Array
(
[super_reduced] => 2.1
[reduced1] => 5.5
[reduced2] => 7
[standard] => 19.6
)
)
[2] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[super_reduced] => 2.1
[reduced1] => 5.5
[standard] => 19.6
)
)
)
)
[21] => Array
(
[name] => Croatia
[code] => HR
[country_code] => HR
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 13
[standard] => 25
)
)
)
)
[22] => Array
(
[name] => Belgium
[code] => BE
[country_code] => BE
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 6
[reduced2] => 12
[standard] => 21
[parking] => 12
)
)
)
)
[23] => Array
(
[name] => Netherlands
[code] => NL
[country_code] => NL
[periods] => Array
(
[0] => Array
(
[effective_from] => 2012-10-01
[rates] => Array
(
[reduced] => 6
[standard] => 21
)
)
[1] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 6
[standard] => 19
)
)
)
)
[24] => Array
(
[name] => Slovakia
[code] => SK
[country_code] => SK
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 10
[standard] => 20
)
)
)
)
[25] => Array
(
[name] => Germany
[code] => DE
[country_code] => DE
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 7
[standard] => 19
)
)
)
)
[26] => Array
(
[name] => Portugal
[code] => PT
[country_code] => PT
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 6
[reduced2] => 13
[standard] => 23
[parking] => 13
)
)
)
)
[27] => Array
(
[name] => Austria
[code] => AT
[country_code] => AT
[periods] => Array
(
[0] => Array
(
[effective_from] => 2016-01-01
[rates] => Array
(
[reduced1] => 10
[reduced2] => 13
[standard] => 20
[parking] => 13
)
)
[1] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 10
[standard] => 20
[parking] => 12
)
)
)
)
)
)
Output for 7.3.32 - 7.3.33 Warning: Illegal string offset 'rates' in /in/YtRT1 on line 6
Warning: Illegal string offset 'periods' in /in/YtRT1 on line 6
Warning: Illegal string offset 'standard' in /in/YtRT1 on line 6
h
Array
(
[details] => http://github.com/adamcooke/vat-rates
[version] =>
[rates] => Array
(
[0] => Array
(
[name] => Spain
[code] => ES
[country_code] => ES
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[super_reduced] => 4
[reduced] => 10
[standard] => 21
)
)
)
)
[1] => Array
(
[name] => Bulgaria
[code] => BG
[country_code] => BG
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 9
[standard] => 20
)
)
)
)
[2] => Array
(
[name] => Hungary
[code] => HU
[country_code] => HU
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 18
[standard] => 27
)
)
)
)
[3] => Array
(
[name] => Latvia
[code] => LV
[country_code] => LV
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 12
[standard] => 21
)
)
)
)
[4] => Array
(
[name] => Poland
[code] => PL
[country_code] => PL
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 8
[standard] => 23
)
)
)
)
[5] => Array
(
[name] => United Kingdom
[code] => UK
[country_code] => GB
[periods] => Array
(
[0] => Array
(
[effective_from] => 2011-01-04
[rates] => Array
(
[standard] => 20
[reduced] => 5
)
)
)
)
[6] => Array
(
[name] => Czech Republic
[code] => CZ
[country_code] => CZ
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 15
[standard] => 21
)
)
)
)
[7] => Array
(
[name] => Malta
[code] => MT
[country_code] => MT
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 7
[standard] => 18
)
)
)
)
[8] => Array
(
[name] => Italy
[code] => IT
[country_code] => IT
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[super_reduced] => 4
[reduced] => 10
[standard] => 22
)
)
)
)
[9] => Array
(
[name] => Slovenia
[code] => SI
[country_code] => SI
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 9.5
[standard] => 22
)
)
)
)
[10] => Array
(
[name] => Ireland
[code] => IE
[country_code] => IE
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[super_reduced] => 4.8
[reduced1] => 9
[reduced2] => 13.5
[standard] => 23
[parking] => 13.5
)
)
)
)
[11] => Array
(
[name] => Sweden
[code] => SE
[country_code] => SE
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 6
[reduced2] => 12
[standard] => 25
)
)
)
)
[12] => Array
(
[name] => Denmark
[code] => DK
[country_code] => DK
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[standard] => 25
)
)
)
)
[13] => Array
(
[name] => Finland
[code] => FI
[country_code] => FI
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 10
[reduced2] => 14
[standard] => 24
)
)
)
)
[14] => Array
(
[name] => Cyprus
[code] => CY
[country_code] => CY
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 9
[standard] => 19
)
)
)
)
[15] => Array
(
[name] => Luxembourg
[code] => LU
[country_code] => LU
[periods] => Array
(
[0] => Array
(
[effective_from] => 2016-01-01
[rates] => Array
(
[super_reduced] => 3
[reduced1] => 8
[standard] => 17
[parking] => 13
)
)
[1] => Array
(
[effective_from] => 2015-01-01
[rates] => Array
(
[super_reduced] => 3
[reduced1] => 8
[reduced2] => 14
[standard] => 17
[parking] => 12
)
)
[2] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[super_reduced] => 3
[reduced1] => 6
[reduced2] => 12
[standard] => 15
[parking] => 12
)
)
)
)
[16] => Array
(
[name] => Romania
[code] => RO
[country_code] => RO
[periods] => Array
(
[0] => Array
(
[effective_from] => 2017-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 9
[standard] => 19
)
)
[1] => Array
(
[effective_from] => 2016-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 9
[standard] => 20
)
)
[2] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 9
[standard] => 24
)
)
)
)
[17] => Array
(
[name] => Estonia
[code] => EE
[country_code] => EE
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 9
[standard] => 20
)
)
)
)
[18] => Array
(
[name] => Greece
[code] => EL
[country_code] => GR
[periods] => Array
(
[0] => Array
(
[effective_from] => 2016-06-01
[rates] => Array
(
[reduced1] => 6
[reduced2] => 13.5
[standard] => 24
)
)
[1] => Array
(
[effective_from] => 2016-01-01
[rates] => Array
(
[reduced1] => 6
[reduced2] => 13.5
[standard] => 23
)
)
[2] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 6.5
[reduced2] => 13
[standard] => 23
)
)
)
)
[19] => Array
(
[name] => Lithuania
[code] => LT
[country_code] => LT
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 9
[standard] => 21
)
)
)
)
[20] => Array
(
[name] => France
[code] => FR
[country_code] => FR
[periods] => Array
(
[0] => Array
(
[effective_from] => 2014-01-01
[rates] => Array
(
[super_reduced] => 2.1
[reduced1] => 5.5
[reduced2] => 10
[standard] => 20
)
)
[1] => Array
(
[effective_from] => 2012-01-01
[rates] => Array
(
[super_reduced] => 2.1
[reduced1] => 5.5
[reduced2] => 7
[standard] => 19.6
)
)
[2] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[super_reduced] => 2.1
[reduced1] => 5.5
[standard] => 19.6
)
)
)
)
[21] => Array
(
[name] => Croatia
[code] => HR
[country_code] => HR
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 13
[standard] => 25
)
)
)
)
[22] => Array
(
[name] => Belgium
[code] => BE
[country_code] => BE
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 6
[reduced2] => 12
[standard] => 21
[parking] => 12
)
)
)
)
[23] => Array
(
[name] => Netherlands
[code] => NL
[country_code] => NL
[periods] => Array
(
[0] => Array
(
[effective_from] => 2012-10-01
[rates] => Array
(
[reduced] => 6
[standard] => 21
)
)
[1] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 6
[standard] => 19
)
)
)
)
[24] => Array
(
[name] => Slovakia
[code] => SK
[country_code] => SK
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 10
[standard] => 20
)
)
)
)
[25] => Array
(
[name] => Germany
[code] => DE
[country_code] => DE
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 7
[standard] => 19
)
)
)
)
[26] => Array
(
[name] => Portugal
[code] => PT
[country_code] => PT
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 6
[reduced2] => 13
[standard] => 23
[parking] => 13
)
)
)
)
[27] => Array
(
[name] => Austria
[code] => AT
[country_code] => AT
[periods] => Array
(
[0] => Array
(
[effective_from] => 2016-01-01
[rates] => Array
(
[reduced1] => 10
[reduced2] => 13
[standard] => 20
[parking] => 13
)
)
[1] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 10
[standard] => 20
[parking] => 12
)
)
)
)
)
)
Output for 7.1.25 , 7.2.0 - 7.2.33 , 7.3.0 - 7.3.31 Warning: Illegal string offset 'rates' in /in/YtRT1 on line 6
Warning: Illegal string offset 'periods' in /in/YtRT1 on line 6
Warning: Illegal string offset 'standard' in /in/YtRT1 on line 6
h
Notice: Undefined index: rates in /in/YtRT1 on line 6
Array
(
[details] => http://github.com/adamcooke/vat-rates
[version] =>
[rates] => Array
(
[0] => Array
(
[name] => Spain
[code] => ES
[country_code] => ES
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[super_reduced] => 4
[reduced] => 10
[standard] => 21
)
)
)
)
[1] => Array
(
[name] => Bulgaria
[code] => BG
[country_code] => BG
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 9
[standard] => 20
)
)
)
)
[2] => Array
(
[name] => Hungary
[code] => HU
[country_code] => HU
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 18
[standard] => 27
)
)
)
)
[3] => Array
(
[name] => Latvia
[code] => LV
[country_code] => LV
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 12
[standard] => 21
)
)
)
)
[4] => Array
(
[name] => Poland
[code] => PL
[country_code] => PL
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 8
[standard] => 23
)
)
)
)
[5] => Array
(
[name] => United Kingdom
[code] => UK
[country_code] => GB
[periods] => Array
(
[0] => Array
(
[effective_from] => 2011-01-04
[rates] => Array
(
[standard] => 20
[reduced] => 5
)
)
)
)
[6] => Array
(
[name] => Czech Republic
[code] => CZ
[country_code] => CZ
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 15
[standard] => 21
)
)
)
)
[7] => Array
(
[name] => Malta
[code] => MT
[country_code] => MT
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 7
[standard] => 18
)
)
)
)
[8] => Array
(
[name] => Italy
[code] => IT
[country_code] => IT
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[super_reduced] => 4
[reduced] => 10
[standard] => 22
)
)
)
)
[9] => Array
(
[name] => Slovenia
[code] => SI
[country_code] => SI
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 9.5
[standard] => 22
)
)
)
)
[10] => Array
(
[name] => Ireland
[code] => IE
[country_code] => IE
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[super_reduced] => 4.8
[reduced1] => 9
[reduced2] => 13.5
[standard] => 23
[parking] => 13.5
)
)
)
)
[11] => Array
(
[name] => Sweden
[code] => SE
[country_code] => SE
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 6
[reduced2] => 12
[standard] => 25
)
)
)
)
[12] => Array
(
[name] => Denmark
[code] => DK
[country_code] => DK
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[standard] => 25
)
)
)
)
[13] => Array
(
[name] => Finland
[code] => FI
[country_code] => FI
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 10
[reduced2] => 14
[standard] => 24
)
)
)
)
[14] => Array
(
[name] => Cyprus
[code] => CY
[country_code] => CY
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 9
[standard] => 19
)
)
)
)
[15] => Array
(
[name] => Luxembourg
[code] => LU
[country_code] => LU
[periods] => Array
(
[0] => Array
(
[effective_from] => 2016-01-01
[rates] => Array
(
[super_reduced] => 3
[reduced1] => 8
[standard] => 17
[parking] => 13
)
)
[1] => Array
(
[effective_from] => 2015-01-01
[rates] => Array
(
[super_reduced] => 3
[reduced1] => 8
[reduced2] => 14
[standard] => 17
[parking] => 12
)
)
[2] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[super_reduced] => 3
[reduced1] => 6
[reduced2] => 12
[standard] => 15
[parking] => 12
)
)
)
)
[16] => Array
(
[name] => Romania
[code] => RO
[country_code] => RO
[periods] => Array
(
[0] => Array
(
[effective_from] => 2017-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 9
[standard] => 19
)
)
[1] => Array
(
[effective_from] => 2016-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 9
[standard] => 20
)
)
[2] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 9
[standard] => 24
)
)
)
)
[17] => Array
(
[name] => Estonia
[code] => EE
[country_code] => EE
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 9
[standard] => 20
)
)
)
)
[18] => Array
(
[name] => Greece
[code] => EL
[country_code] => GR
[periods] => Array
(
[0] => Array
(
[effective_from] => 2016-06-01
[rates] => Array
(
[reduced1] => 6
[reduced2] => 13.5
[standard] => 24
)
)
[1] => Array
(
[effective_from] => 2016-01-01
[rates] => Array
(
[reduced1] => 6
[reduced2] => 13.5
[standard] => 23
)
)
[2] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 6.5
[reduced2] => 13
[standard] => 23
)
)
)
)
[19] => Array
(
[name] => Lithuania
[code] => LT
[country_code] => LT
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 9
[standard] => 21
)
)
)
)
[20] => Array
(
[name] => France
[code] => FR
[country_code] => FR
[periods] => Array
(
[0] => Array
(
[effective_from] => 2014-01-01
[rates] => Array
(
[super_reduced] => 2.1
[reduced1] => 5.5
[reduced2] => 10
[standard] => 20
)
)
[1] => Array
(
[effective_from] => 2012-01-01
[rates] => Array
(
[super_reduced] => 2.1
[reduced1] => 5.5
[reduced2] => 7
[standard] => 19.6
)
)
[2] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[super_reduced] => 2.1
[reduced1] => 5.5
[standard] => 19.6
)
)
)
)
[21] => Array
(
[name] => Croatia
[code] => HR
[country_code] => HR
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 5
[reduced2] => 13
[standard] => 25
)
)
)
)
[22] => Array
(
[name] => Belgium
[code] => BE
[country_code] => BE
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 6
[reduced2] => 12
[standard] => 21
[parking] => 12
)
)
)
)
[23] => Array
(
[name] => Netherlands
[code] => NL
[country_code] => NL
[periods] => Array
(
[0] => Array
(
[effective_from] => 2012-10-01
[rates] => Array
(
[reduced] => 6
[standard] => 21
)
)
[1] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 6
[standard] => 19
)
)
)
)
[24] => Array
(
[name] => Slovakia
[code] => SK
[country_code] => SK
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 10
[standard] => 20
)
)
)
)
[25] => Array
(
[name] => Germany
[code] => DE
[country_code] => DE
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 7
[standard] => 19
)
)
)
)
[26] => Array
(
[name] => Portugal
[code] => PT
[country_code] => PT
[periods] => Array
(
[0] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced1] => 6
[reduced2] => 13
[standard] => 23
[parking] => 13
)
)
)
)
[27] => Array
(
[name] => Austria
[code] => AT
[country_code] => AT
[periods] => Array
(
[0] => Array
(
[effective_from] => 2016-01-01
[rates] => Array
(
[reduced1] => 10
[reduced2] => 13
[standard] => 20
[parking] => 13
)
)
[1] => Array
(
[effective_from] => 0000-01-01
[rates] => Array
(
[reduced] => 10
[standard] => 20
[parking] => 12
)
)
)
)
)
)
preferences:dark mode live preview
210.47 ms | 457 KiB | 152 Q