3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = new DOMDocument; $doc->loadXML('<?xml version="1.0" encoding="UTF-8"?> <c:tellervo xmlns:c="http://www.tellervo.org/schema/1.0" xmlns:gml="http://www.opengis.net/gml" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:tridas="http://www.tridas.org/1.2.2"> <c:request type="create"> <tridas:object> <tridas:title>ppp</tridas:title> <tridas:type normalStd="Tellervo" normalId="1" normal="Site"/> <tridas:genericField name="tellervo.objectLabCode">2222</tridas:genericField> </tridas:object> </c:request> </c:tellervo> '); $children = $doc->documentElement->childNodes; foreach($children as $child) { if($child->nodeType != XML_ELEMENT_NODE) continue; $firebug->log($child->nodeName, "child nodeName"); }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $firebug in /in/GMsL8 on line 17 Fatal error: Uncaught Error: Call to a member function log() on null in /in/GMsL8:17 Stack trace: #0 {main} thrown in /in/GMsL8 on line 17
Process exited with code 255.

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.56 ms | 401 KiB | 8 Q