3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jsonstr = ' { "child": { "": { "rss": [{ "data": "\n \n", "attribs": { "": { "version": "2.0" } }, "xml_base": "", "xml_base_explicit": false, "xml_lang": "", "child": { "": { "channel": [{ "data": "\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n ", "attribs": [], "xml_base": "", "xml_base_explicit": false, "xml_lang": "", "child": { "": { "title": [{ "data": "Data name", "attribs": [], "xml_base": "", "xml_base_explicit": false, "xml_lang": "" }] } } }] } } }] } } }'; $json = json_decode($jsonstr, true); print_r($json['child']['']['rss'][0]['child']['']['channel'][0]['child']['']['title']); $json = json_decode($jsonstr); print_r($json->child->{''}->rss[0]->child->{''}->channel[0]->child->{''}->title);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Array ( [data] => Data name [attribs] => Array ( ) [xml_base] => [xml_base_explicit] => [xml_lang] => ) ) Array ( [0] => stdClass Object ( [data] => Data name [attribs] => Array ( ) [xml_base] => [xml_base_explicit] => [xml_lang] => ) )

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:
27.5 ms | 406 KiB | 5 Q