3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function debugSousBalises($p_oBalise){ for($i = 0; $i < $p_oBalise->childNodes->length; ++$i){ $oNode = $p_oBalise->childNodes->item($i); //var_dump($oNode); switch(get_class($oNode)){ case 'DOMText': echo "T:", $oNode->wholeText; break; case 'DOMElement': echo "E:", $oNode->tagName.' : '.$oNode->nodeValue; break; default: echo "D:", get_class($oNode).' pas encore pris en compte'; } } } $xml = new DOMDocument(); $xml->loadXml('<balise> <ata>2013-08-20T17:13:25</ata> <atd>2013-08-20T17:15:03</atd> <callSequence>1</callSequence> <actualCallSequence>2</actualCallSequence> <clauseInfo> <clause>LIV_CFM</clause> <description>Conforme</description> </clauseInfo> </balise>'); debugSousBalises($xml->documentElement); ?>
based on ZO7vp
Output for 5.2.3 - 7.2.0
T: E:ata : 2013-08-20T17:13:25T: E:atd : 2013-08-20T17:15:03T: E:callSequence : 1T: E:actualCallSequence : 2T: E:clauseInfo : LIV_CFM Conforme T:
Output for 5.0.0 - 5.2.2
T: E:ata : 2013-08-20T17:13:25T: E:atd : 2013-08-20T17:15:03T: E:callSequence : 1T: E:actualCallSequence : 2T: E:clauseInfo : LIV_CFM Conforme T:
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: domdocument in /in/2gHde on line 22
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: domdocument in /in/2gHde on line 22