3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = "data%5B0%5D%5Bfname%5D=Tester&data%5B0%5D%5Blname%5D=Testerson&data%5B0%5D%5Bemail%5D=test%40test.com&data%5B0%5D%5Bbirthyear%5D=1984&data%5B0%5D%5Bethnicity%5D=1&data%5B0%5D%5Bgender%5D=1&data%5B0%5D%5Brecruiter%5D=1&data%5B0%5D%5BcreationDate%5D=2014-02-03+19%3A39%3A19"; $new_string = urldecode($string); print_r($new_string); $array = json_decode($new_string); print_r($array);
Output for 5.2.0, 5.2.9 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
data[0][fname]=Tester&data[0][lname]=Testerson&data[0][email]=test@test.com&data[0][birthyear]=1984&data[0][ethnicity]=1&data[0][gender]=1&data[0][recruiter]=1&data[0][creationDate]=2014-02-03 19:39:19
Output for 5.2.1 - 5.2.8
data[0][fname]=Tester&data[0][lname]=Testerson&data[0][email]=test@test.com&data[0][birthyear]=1984&data[0][ethnicity]=1&data[0][gender]=1&data[0][recruiter]=1&data[0][creationDate]=2014-02-03 19:39:19data[0][fname]=Tester&data[0][lname]=Testerson&data[0][email]=test@test.com&data[0][birthyear]=1984&data[0][ethnicity]=1&data[0][gender]=1&data[0][recruiter]=1&data[0][creationDate]=2014-02-03 19:39:19
Output for 5.0.0 - 5.1.6
data[0][fname]=Tester&data[0][lname]=Testerson&data[0][email]=test@test.com&data[0][birthyear]=1984&data[0][ethnicity]=1&data[0][gender]=1&data[0][recruiter]=1&data[0][creationDate]=2014-02-03 19:39:19 Fatal error: Call to undefined function json_decode() in /in/895GD on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
data[0][fname]=Tester&data[0][lname]=Testerson&data[0][email]=test@test.com&data[0][birthyear]=1984&data[0][ethnicity]=1&data[0][gender]=1&data[0][recruiter]=1&data[0][creationDate]=2014-02-03 19:39:19 Fatal error: Call to undefined function: json_decode() in /in/895GD on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
data[0][fname]=Tester&data[0][lname]=Testerson&data[0][email]=test@test.com&data[0][birthyear]=1984&data[0][ethnicity]=1&data[0][gender]=1&data[0][recruiter]=1&data[0][creationDate]=2014-02-03 19:39:19 Fatal error: Call to undefined function: json_decode() in /in/895GD on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
data[0][fname]=Tester&data[0][lname]=Testerson&data[0][email]=test@test.com&data[0][birthyear]=1984&data[0][ethnicity]=1&data[0][gender]=1&data[0][recruiter]=1&data[0][creationDate]=2014-02-03 19:39:19 Fatal error: Call to undefined function: json_decode() in /in/895GD on line 5