3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '[{"name":"Sorgenti[denominazione]","value":"lo"},{"name":"Sorgenti[comune]","value":""},{"name":"Sorgenti[indirizzo]","value":""},{"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); $match=null; preg_match('/\[(.*?)\]/',$a[7]->name,$match); echo $match[1]; //echo $a[7]->name[0]; echo $a[1]->value; //var_dump(json_decode($json, true)); ?>
Output for git.master, git.master_jit, rfc.property-hooks
descrizione

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:
37.96 ms | 401 KiB | 8 Q