3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $j = '{"data":{"items":[{"education_period":{"id":1,"code":"1","name":"I \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u044c"},"year":2018,"average":4.5,"resulting":5},{"education_period":{"id":3,"code":"11","name":"II \u043c\u043e\u0434\u0443\u043b\u044c"},"year":2019,"average":0,"resulting":0},{"education_period":{"id":12,"code":"2","name":"II \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u044c"},"year":2018,"average":0,"resulting":0},{"education_period":{"id":15,"code":"3","name":"III \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u044c"},"year":2019,"average":0,"resulting":0},{"education_period":{"id":16,"code":"4","name":"IV \u0447\u0435\u0442\u0432\u0435\u0440\u0442\u044c"},"year":2019,"average":0,"resulting":0}]},"validations":[],"messages":[],"debug":[]}'; var_dump(json_decode($j, true));
based on rK9P0
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.3.0rc3
array(4) { ["data"]=> array(1) { ["items"]=> array(5) { [0]=> array(4) { ["education_period"]=> array(3) { ["id"]=> int(1) ["code"]=> string(1) "1" ["name"]=> string(18) "I четверть" } ["year"]=> int(2018) ["average"]=> float(4.5) ["resulting"]=> int(5) } [1]=> array(4) { ["education_period"]=> array(3) { ["id"]=> int(3) ["code"]=> string(2) "11" ["name"]=> string(15) "II модуль" } ["year"]=> int(2019) ["average"]=> int(0) ["resulting"]=> int(0) } [2]=> array(4) { ["education_period"]=> array(3) { ["id"]=> int(12) ["code"]=> string(1) "2" ["name"]=> string(19) "II четверть" } ["year"]=> int(2018) ["average"]=> int(0) ["resulting"]=> int(0) } [3]=> array(4) { ["education_period"]=> array(3) { ["id"]=> int(15) ["code"]=> string(1) "3" ["name"]=> string(20) "III четверть" } ["year"]=> int(2019) ["average"]=> int(0) ["resulting"]=> int(0) } [4]=> array(4) { ["education_period"]=> array(3) { ["id"]=> int(16) ["code"]=> string(1) "4" ["name"]=> string(19) "IV четверть" } ["year"]=> int(2019) ["average"]=> int(0) ["resulting"]=> int(0) } } } ["validations"]=> array(0) { } ["messages"]=> array(0) { } ["debug"]=> array(0) { } }