3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = simplexml_load_string('<a><![CDATA[OK]]></a>', null, LIBXML_NOCDATA ); var_dump($xml); var_dump($xml['a']); var_dump($xml->a); $content = simplexml_load_string( '<content><![CDATA[Hello, world!]]></content>' , null , LIBXML_NOCDATA ); var_dump($content);
Output for git.master, git.master_jit, rfc.property-hooks
object(SimpleXMLElement)#1 (1) { [0]=> string(2) "OK" } NULL object(SimpleXMLElement)#2 (0) { } object(SimpleXMLElement)#2 (1) { [0]=> string(13) "Hello, world!" }

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