3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = '[{"EXTAPP_ID":"9901","CATEGORY_ID":"10","LANGUAGE_CODE":"tr","CATEGORY_LANG_DESC":"Sat\u0131\u015f Departman\u0131"},{"EXTAPP_ID":"9901","CATEGORY_ID":"10","LANGUAGE_CODE":"de","CATEGORY_LANG_DESC":"Sales Abteilung"},{"EXTAPP_ID":"9901","CATEGORY_ID":"20","LANGUAGE_CODE":"de","CATEGORY_LANG_DESC":"Procurement Abteilung"},{"EXTAPP_ID":"9901","CATEGORY_ID":"20","LANGUAGE_CODE":"tr","CATEGORY_LANG_DESC":"Sat\u0131nalma Departman\u0131"},{"EXTAPP_ID":"9901","CATEGORY_ID":"10","LANGUAGE_CODE":"en","CATEGORY_LANG_DESC":"Sales Department"},{"EXTAPP_ID":"9901","CATEGORY_ID":"20","LANGUAGE_CODE":"en","CATEGORY_LANG_DESC":"Procurement Department"}]'; $json = json_decode($string, true); foreach($json AS $array) { foreach($array AS $key => $value) { echo $key . " : " . $value . "\n"; } }
Output for 5.2.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
EXTAPP_ID : 9901 CATEGORY_ID : 10 LANGUAGE_CODE : tr CATEGORY_LANG_DESC : Satış Departmanı EXTAPP_ID : 9901 CATEGORY_ID : 10 LANGUAGE_CODE : de CATEGORY_LANG_DESC : Sales Abteilung EXTAPP_ID : 9901 CATEGORY_ID : 20 LANGUAGE_CODE : de CATEGORY_LANG_DESC : Procurement Abteilung EXTAPP_ID : 9901 CATEGORY_ID : 20 LANGUAGE_CODE : tr CATEGORY_LANG_DESC : Satınalma Departmanı EXTAPP_ID : 9901 CATEGORY_ID : 10 LANGUAGE_CODE : en CATEGORY_LANG_DESC : Sales Department EXTAPP_ID : 9901 CATEGORY_ID : 20 LANGUAGE_CODE : en CATEGORY_LANG_DESC : Procurement Department
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.1.6
Fatal error: Call to undefined function json_decode() in /in/Ee1iF on line 4
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: json_decode() in /in/Ee1iF on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: json_decode() in /in/Ee1iF on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: json_decode() in /in/Ee1iF on line 4