3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $jsonArr=json_decode('{"term":"第5回","kykaCd":"e11","subjectName":"英語","kamokuContent":"リスニング","itemList":[{"name":"必答問題","must":true,"selectNum":0,"item":[{"sequence":null,"broadNum":"09","broadName":"必答大問24-01"},{"sequence":null,"broadNum":"09","broadName":"必答大問24-01"},{"sequence":null,"broadNum":"10","broadName":"必答大問24-02"},{"sequence":null,"broadNum":"10","broadName":"必答大問24-02"},{"sequence":null,"broadNum":"11","broadName":"必答大問24-03"},{"sequence":null,"broadNum":"11","broadName":"必答大問24-03"}]},{"name":"選択問題1","must":false,"selectNum":3,"item":[{"sequence":"080000024","broadNum":"01","broadName":"大問24-01"},{"sequence":"080000024","broadNum":"01","broadName":"大問24-01"},{"sequence":"080000024","broadNum":"02","broadName":"大問24-02"},{"sequence":"080000024","broadNum":"02","broadName":"大問24-02"},{"sequence":"080000024","broadNum":"03","broadName":"大問24-03"},{"sequence":"080000024","broadNum":"03","broadName":"大問24-03"},{"sequence":"080000024","broadNum":"04","broadName":"大問24-04"},{"sequence":"080000024","broadNum":"04","broadName":"大問24-04"},{"sequence":"080000024","broadNum":"05","broadName":"大問24-05"},{"sequence":"080000024","broadNum":"05","broadName":"大問24-05"},{"sequence":"080000024","broadNum":"06","broadName":"大問24-06"},{"sequence":"080000024","broadNum":"06","broadName":"大問24-06"},{"sequence":"080000024","broadNum":"07","broadName":"大問24-07"},{"sequence":"080000024","broadNum":"07","broadName":"大問24-07"},{"sequence":"080000024","broadNum":"08","broadName":"大問24-08"},{"sequence":"080000024","broadNum":"08","broadName":"大問24-08"}]}]}'); print_r($jsonArr);
Output for 5.2.0 - 7.1.0
stdClass Object ( [term] => 第5回 [kykaCd] => e11 [subjectName] => 英語 [kamokuContent] => リスニング [itemList] => Array ( [0] => stdClass Object ( [name] => 必答問題 [must] => 1 [selectNum] => 0 [item] => Array ( [0] => stdClass Object ( [sequence] => [broadNum] => 09 [broadName] => 必答大問24-01 ) [1] => stdClass Object ( [sequence] => [broadNum] => 09 [broadName] => 必答大問24-01 ) [2] => stdClass Object ( [sequence] => [broadNum] => 10 [broadName] => 必答大問24-02 ) [3] => stdClass Object ( [sequence] => [broadNum] => 10 [broadName] => 必答大問24-02 ) [4] => stdClass Object ( [sequence] => [broadNum] => 11 [broadName] => 必答大問24-03 ) [5] => stdClass Object ( [sequence] => [broadNum] => 11 [broadName] => 必答大問24-03 ) ) ) [1] => stdClass Object ( [name] => 選択問題1 [must] => [selectNum] => 3 [item] => Array ( [0] => stdClass Object ( [sequence] => 080000024 [broadNum] => 01 [broadName] => 大問24-01 ) [1] => stdClass Object ( [sequence] => 080000024 [broadNum] => 01 [broadName] => 大問24-01 ) [2] => stdClass Object ( [sequence] => 080000024 [broadNum] => 02 [broadName] => 大問24-02 ) [3] => stdClass Object ( [sequence] => 080000024 [broadNum] => 02 [broadName] => 大問24-02 ) [4] => stdClass Object ( [sequence] => 080000024 [broadNum] => 03 [broadName] => 大問24-03 ) [5] => stdClass Object ( [sequence] => 080000024 [broadNum] => 03 [broadName] => 大問24-03 ) [6] => stdClass Object ( [sequence] => 080000024 [broadNum] => 04 [broadName] => 大問24-04 ) [7] => stdClass Object ( [sequence] => 080000024 [broadNum] => 04 [broadName] => 大問24-04 ) [8] => stdClass Object ( [sequence] => 080000024 [broadNum] => 05 [broadName] => 大問24-05 ) [9] => stdClass Object ( [sequence] => 080000024 [broadNum] => 05 [broadName] => 大問24-05 ) [10] => stdClass Object ( [sequence] => 080000024 [broadNum] => 06 [broadName] => 大問24-06 ) [11] => stdClass Object ( [sequence] => 080000024 [broadNum] => 06 [broadName] => 大問24-06 ) [12] => stdClass Object ( [sequence] => 080000024 [broadNum] => 07 [broadName] => 大問24-07 ) [13] => stdClass Object ( [sequence] => 080000024 [broadNum] => 07 [broadName] => 大問24-07 ) [14] => stdClass Object ( [sequence] => 080000024 [broadNum] => 08 [broadName] => 大問24-08 ) [15] => stdClass Object ( [sequence] => 080000024 [broadNum] => 08 [broadName] => 大問24-08 ) ) ) ) )
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/uRbsA on line 2
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/uRbsA on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/uRbsA on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/uRbsA on line 2