3v4l.org

run code in 300+ PHP versions simultaneously
<?php $buffer = <<<XML <tr> <td>http://www.example.co.uk/the-view-from-22/feed/</td> <td>Example Blogs » The View from 22 » Example Blogs</td> <td>http://blogs.example.co.uk/</td> <td><![CDATA[Listen: The Example&rsquo;s verdict on the debate]]></td> <td>http://blogs.example.co.uk/coffeehouse/2015/04/podcast-special-the-debate/</td> </tr> XML; $xml = simplexml_load_string($buffer); $xml->asXML('php://output'); $doc = new DOMDocument(); $doc->presverWhitespace = false; $doc->formatOutput = true; $xml = $xml->asXML(); $xml = str_replace('&rsquo;', '&#8217;', $xml); $doc->loadXML($xml); $doc->save('php://output');
Output for git.master, git.master_jit, rfc.property-hooks
<?xml version="1.0"?> <tr> <td>http://www.example.co.uk/the-view-from-22/feed/</td> <td>Example Blogs &#xBB; The View from 22 &#xBB; Example Blogs</td> <td>http://blogs.example.co.uk/</td> <td><![CDATA[Listen: The Example&rsquo;s verdict on the debate]]></td> <td>http://blogs.example.co.uk/coffeehouse/2015/04/podcast-special-the-debate/</td> </tr> Deprecated: Creation of dynamic property DOMDocument::$presverWhitespace is deprecated in /in/EFqUU on line 17 <?xml version="1.0"?> <tr> <td>http://www.example.co.uk/the-view-from-22/feed/</td> <td>Example Blogs &#xBB; The View from 22 &#xBB; Example Blogs</td> <td>http://blogs.example.co.uk/</td> <td><![CDATA[Listen: The Example&#8217;s verdict on the debate]]></td> <td>http://blogs.example.co.uk/coffeehouse/2015/04/podcast-special-the-debate/</td> </tr>

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