3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '{"edu_city": [{"region_code": "230100000000", "from": "3", "id": "1119", "value": "哈尔滨"}], "kl_option": [], "cn": "juhe", "kv_option": [{"key": "biz_size", "value": "2"}, {"key": "org_size", "value": "4"}, {"key": "class_id", "value": "0"}], "filter_id": [], "query_seg": ["英语", "培训"], "srcid": [29090], "school_name": "", "edusid": [], "tn": "", "debug": 0, "request_type": 2, "pssid": [], "pointid": [], "request_id": "13111", "zt": "union", "query": "英语培训", "da_topic_id": [], "page": {"page": 1, "pageSize": 8}, "is_academy": 0}'; $ret = json_decode($a , true); print_r($ret);
Output for 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Array ( [edu_city] => Array ( [0] => Array ( [region_code] => 230100000000 [from] => 3 [id] => 1119 [value] => 哈尔滨 ) ) [kl_option] => Array ( ) [cn] => juhe [kv_option] => Array ( [0] => Array ( [key] => biz_size [value] => 2 ) [1] => Array ( [key] => org_size [value] => 4 ) [2] => Array ( [key] => class_id [value] => 0 ) ) [filter_id] => Array ( ) [query_seg] => Array ( [0] => 英语 [1] => 培训 ) [srcid] => Array ( [0] => 29090 ) [school_name] => [edusid] => Array ( ) [tn] => [debug] => 0 [request_type] => 2 [pssid] => Array ( ) [pointid] => Array ( ) [request_id] => 13111 [zt] => union [query] => 英语培训 [da_topic_id] => Array ( ) [page] => Array ( [page] => 1 [pageSize] => 8 ) [is_academy] => 0 )
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/AQFvc on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/AQFvc on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/AQFvc on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/AQFvc on line 3

preferences:
276.65 ms | 401 KiB | 459 Q