3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); @ini_set('display_errors', 'On'); @ini_set('display_startup_errors', 'On'); $noCDATA = <<<XML <?xml version='1.0'?> <message> It fails with special characters, like "CoÒ &#x19; &#x1A;¶peratiehof 16a". </message> XML; $yesCDATA = <<<XML <?xml version='1.0'?> <message><![CDATA[ It fails with special characters, like "CoÒ &#x19; &#x1A;¶peratiehof 16a". Hence we need to wrap it. ]]></message> XML; $xml = simplexml_load_string($yesCDATA); print_r((string) $xml); #$xml = simplexml_load_string($noCDATA); #print_r((string) $xml);
Output for git.master, git.master_jit, rfc.property-hooks
It fails with special characters, like "CoÒ &#x19; &#x1A;¶peratiehof 16a". Hence we need to wrap it.

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