3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = simplexml_load_string('<a><b><c>abc</c></b></a>'); var_dump($xml); var_dump($xml->children()); var_dump($xml->count()); var_dump($xml->getName());
Output for git.master, git.master_jit, rfc.property-hooks
object(SimpleXMLElement)#1 (1) { ["b"]=> object(SimpleXMLElement)#2 (1) { ["c"]=> string(3) "abc" } } object(SimpleXMLElement)#2 (1) { ["b"]=> object(SimpleXMLElement)#4 (1) { ["c"]=> string(3) "abc" } } int(1) string(1) "a"

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.89 ms | 402 KiB | 8 Q