3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ans = <<<XML <?xml version="1.0" encoding="utf-8"?> <ResponseDoc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <response> <index>1</index> <statusCode>Success</statusCode> </response> <response> <index>2</index> <statusCode>Success</statusCode> </response> <response> <index>3</index> <statusCode>Success</statusCode> </response> <response> <index>4</index> <statusCode>Success</statusCode> </response> </ResponseDoc> XML; $r1 = simplexml_load_string($ans); $responses = $r1->xpath('//response'); print_r($responses);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => SimpleXMLElement Object ( [index] => 1 [statusCode] => Success ) [1] => SimpleXMLElement Object ( [index] => 2 [statusCode] => Success ) [2] => SimpleXMLElement Object ( [index] => 3 [statusCode] => Success ) [3] => SimpleXMLElement Object ( [index] => 4 [statusCode] => Success ) )

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