3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data = '{"id":"51","name":"abc","address":"stffu fsagu asfhgui fsahgiu3#$@^^@#%^3 6\"\"wkgforqf\";rqgjrg..,,,rqwgtr\'\'qwrgtrw\'trwqt\'rqwtqwr trqt\n"}'; $data = urlencode($data); var_dump($data); $jsonFix = urldecode($data); $json = json_decode($jsonFix, true); var_dump($json);
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(225) "%7B%22id%22%3A%2251%22%2C%22name%22%3A%22abc%22%2C%22address%22%3A%22stffu+fsagu+asfhgui+fsahgiu3%23%24%40%5E%5E%40%23%25%5E3+6%5C%22%5C%22wkgforqf%5C%22%3Brqgjrg..%2C%2C%2Crqwgtr%27%27qwrgtrw%27trwqt%27rqwtqwr+trqt%5Cn%22%7D" array(3) { ["id"]=> string(2) "51" ["name"]=> string(3) "abc" ["address"]=> string(98) "stffu fsagu asfhgui fsahgiu3#$@^^@#%^3 6""wkgforqf";rqgjrg..,,,rqwgtr''qwrgtrw'trwqt'rqwtqwr trqt " }
Output for 5.0.0 - 5.1.6
string(225) "%7B%22id%22%3A%2251%22%2C%22name%22%3A%22abc%22%2C%22address%22%3A%22stffu+fsagu+asfhgui+fsahgiu3%23%24%40%5E%5E%40%23%25%5E3+6%5C%22%5C%22wkgforqf%5C%22%3Brqgjrg..%2C%2C%2Crqwgtr%27%27qwrgtrw%27trwqt%27rqwtqwr+trqt%5Cn%22%7D" Fatal error: Call to undefined function json_decode() in /in/TtY8S on line 9
Process exited with code 255.
Output for 4.4.5 - 4.4.9
string(225) "%7B%22id%22%3A%2251%22%2C%22name%22%3A%22abc%22%2C%22address%22%3A%22stffu+fsagu+asfhgui+fsahgiu3%23%24%40%5E%5E%40%23%25%5E3+6%5C%22%5C%22wkgforqf%5C%22%3Brqgjrg..%2C%2C%2Crqwgtr%27%27qwrgtrw%27trwqt%27rqwtqwr+trqt%5Cn%22%7D" Fatal error: Call to undefined function: json_decode() in /in/TtY8S on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.4
string(225) "%7B%22id%22%3A%2251%22%2C%22name%22%3A%22abc%22%2C%22address%22%3A%22stffu+fsagu+asfhgui+fsahgiu3%23%24%40%5E%5E%40%23%25%5E3+6%5C%22%5C%22wkgforqf%5C%22%3Brqgjrg..%2C%2C%2Crqwgtr%27%27qwrgtrw%27trwqt%27rqwtqwr+trqt%5Cn%22%7D" Fatal error: Call to undefined function: json_decode() in /in/TtY8S on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
string(225) "%7B%22id%22%3A%2251%22%2C%22name%22%3A%22abc%22%2C%22address%22%3A%22stffu+fsagu+asfhgui+fsahgiu3%23%24%40%5E%5E%40%23%25%5E3+6%5C%22%5C%22wkgforqf%5C%22%3Brqgjrg..%2C%2C%2Crqwgtr%27%27qwrgtrw%27trwqt%27rqwtqwr+trqt%5Cn%22%7D" Fatal error: Call to undefined function: json_decode() in /in/TtY8S on line 9