3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo "PHP " . PHP_VERSION . PHP_EOL; echo "libxml " . LIBXML_DOTTED_VERSION . PHP_EOL . PHP_EOL; $doc = Dom\XMLDocument::createFromString('<root xmlns="urn:a" attr="val"/>'); $doc->documentElement->setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:ns1", "urn:a"); echo "saveXML: " . trim($doc->saveXML()) . PHP_EOL; echo "C14N: " . $doc->C14N() . PHP_EOL;
Output for git.master

Process exited with code 139.
Output for git.master_jit
PHP 8.6.0-dev libxml 2.9.14 saveXML: <?xml version="1.0" encoding="UTF-8"?> <root xmlns="urn:a" attr="val" xmlns:ns1="urn:a"/> C14N: <root xmlns="urn:a" xmlns:ns1="urn:a" attr="val"></root>

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:
46.11 ms | 532 KiB | 4 Q