3v4l.org

run code in 300+ PHP versions simultaneously
<?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":""}]'; //$json = '{"a":1,"b":2,"c":3,"d":4,"e":5}'; $a=json_decode($json); echo (json_decode($a[0]->name))['denominazione']; echo $a[0]->value; //var_dump(json_decode($json, true)); ?>
Output for git.master, git.master_jit
Warning: Trying to access array offset on value of type null in /in/diffs on line 5 london
Output for rfc.property-hooks
Warning: Trying to access array offset on null in /in/diffs on line 5 london

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
40.72 ms | 401 KiB | 8 Q