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. Warning: simplexml_load_string(): Entity: line 3: parser error : xmlParseCharRef: invalid xmlChar value 25 in /in/6f0vA on line 23 Warning: simplexml_load_string(): It fails with special characters, like "CoÒ &#x19; &#x1A;¶peratiehof 16a". in /in/6f0vA on line 23 Warning: simplexml_load_string(): ^ in /in/6f0vA on line 23 Warning: simplexml_load_string(): Entity: line 3: parser error : xmlParseCharRef: invalid xmlChar value 26 in /in/6f0vA on line 23 Warning: simplexml_load_string(): It fails with special characters, like "CoÒ &#x19; &#x1A;¶peratiehof 16a". in /in/6f0vA on line 23 Warning: simplexml_load_string(): ^ in /in/6f0vA on line 23

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:
56.2 ms | 403 KiB | 8 Q