3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument('1.0', 'ASCII'); $dom->appendChild($dom->createElement('foo')); $dom->documentElement->appendChild( $dom->createCDATASection( 'Foo &#228; ]]> bar äöü' ) ); $dom2 = new DOMDocument(); $dom2->loadXml($dom->saveXml()); $xpath = new DOMXpath($dom); var_dump( $dom->saveXml(), $xpath->evaluate('string(/foo)') );
Output for git.master, git.master_jit, rfc.property-hooks
string(112) "<?xml version="1.0" encoding="ASCII"?> <foo><![CDATA[Foo &#228; ]]]]><![CDATA[> bar &#228;&#246;&#252;]]></foo> " string(25) "Foo &#228; ]]> bar äöü"

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