3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<EOF <?xml version="1.0" encoding="ISO-8859-1" ?> <!DOCTYPE romeoapi SYSTEM "http://www.sherpa.ac.uk/romeo/romeoapi24.dtd"> <romeoapi version="2.9.4"> <header> <parameters> <parameter source="specified"> <parametername>id</parametername> <parametervalue>213213213213213</parametervalue> </parameter> <parameter source="default"> <parametername>showfunder</parametername> <parametervalue>none</parametervalue> </parameter> <parameter source="default"> <parametername>fIDnum</parametername> <parametervalue>|</parametervalue> </parameter> <parameter source="default"> <parametername>la</parametername> <parametervalue>en</parametervalue> </parameter> <parameter source="default"> <parametername>versions</parametername> <parametervalue>legacy</parametervalue> </parameter> </parameters> <numhits>0</numhits> <apicontrol>identifier</apicontrol> <outcome>notFound</outcome> <message /> <licence>SHERPA/RoMEO data is available for re-use under a Creative Commons Attribution-Non-Commercial-Share Alike 2.5 licence. For more details, please see the 'conditions for re-use' at the &lt;licenceurl /&gt;, and linked-to from the SHERPA/RoMEO home page.</licence> <licenceurl>http://www.sherpa.ac.uk/romeoreuse.html</licenceurl> <disclaimer>All SHERPA/RoMEO information is correct to the best of our knowledge but should not be relied upon for legal advice. SHERPA cannot be held responsible for the re-use of RoMEO data, or for alternative interpretations which are derived from this information.</disclaimer> <timestamp>16-Oct-2013:15:00:12</timestamp> </header> <journals /> <publishers /> </romeoapi> EOF; $check = simplexml_load_string($string); print_r($check->header);
Output for git.master, git.master_jit, rfc.property-hooks
SimpleXMLElement Object ( [parameters] => SimpleXMLElement Object ( [parameter] => Array ( [0] => SimpleXMLElement Object ( [@attributes] => Array ( [source] => specified ) [parametername] => id [parametervalue] => 213213213213213 ) [1] => SimpleXMLElement Object ( [@attributes] => Array ( [source] => default ) [parametername] => showfunder [parametervalue] => none ) [2] => SimpleXMLElement Object ( [@attributes] => Array ( [source] => default ) [parametername] => fIDnum [parametervalue] => | ) [3] => SimpleXMLElement Object ( [@attributes] => Array ( [source] => default ) [parametername] => la [parametervalue] => en ) [4] => SimpleXMLElement Object ( [@attributes] => Array ( [source] => default ) [parametername] => versions [parametervalue] => legacy ) ) ) [numhits] => 0 [apicontrol] => identifier [outcome] => notFound [message] => SimpleXMLElement Object ( ) [licence] => SHERPA/RoMEO data is available for re-use under a Creative Commons Attribution-Non-Commercial-Share Alike 2.5 licence. For more details, please see the 'conditions for re-use' at the <licenceurl />, and linked-to from the SHERPA/RoMEO home page. [licenceurl] => http://www.sherpa.ac.uk/romeoreuse.html [disclaimer] => All SHERPA/RoMEO information is correct to the best of our knowledge but should not be relied upon for legal advice. SHERPA cannot be held responsible for the re-use of RoMEO data, or for alternative interpretations which are derived from this information. [timestamp] => 16-Oct-2013:15:00:12 )

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:
35.61 ms | 409 KiB | 8 Q