3v4l.org

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

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