3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $json = "[{"name":"Sorgenti[denominazione]","value":"london"},{"name":"Sorgenti[comune]","value":"0"},{"name":"Sorgenti[indirizzo]","value":"dsfdfds"},{"name":"Sorgenti[altra_denominazione]","value":""},{"name":"Sorgenti[localita]","value":""},{"name":"Sorgenti[quota]","value":""},{"name":"Sorgenti[tipologia]","value":""},{"name":"Sorgenti[descrizione]","value":""},{"name":"Sorgenti[lat]","value":""},{"name":"Sorgenti[lng]","value":""}]"; var_dump(json_decode($json)); var_dump(json_decode($json, true)); ?>
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected 'name' (T_STRING) in /in/lCJC2 on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/lCJC2 on line 2
Process exited with code 255.