3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $xml = <<<EOD <?xml version="1.0" encoding="UTF-8"?> <gvq:GVQ_Metadata xmlns:gvq="http://www.geoviqua.org/QualityInformationModel/4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:updated19115="http://www.geoviqua.org/19115_updates" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gmx="http://www.isotc211.org/2005/gmx" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:gmd19157="http://www.geoviqua.org/gmd19157" xmlns:un="http://www.uncertml.org/2.0" id="dataset_MD" xsi:schemaLocation="http://www.isotc211.org/2005/gmx http://schemas.opengis.net/iso/19139/20070417/gmx/gmx.xsd http://www.geoviqua.org/QualityInformationModel/4.0 http://schemas.geoviqua.org/GVQ/4.0/GeoViQua_PQM_UQM.xsd http://www.uncertml.org/2.0 http://www.uncertml.org/uncertml.xsd"> <gmd:fileIdentifier xmlns:gmd="http://www.isotc211.org/2005/gmd"> <gco:CharacterString xmlns:gco="http://www.isotc211.org/2005/gco">mtri2an1ib</gco:CharacterString> </gmd:fileIdentifier> </gvq:GVQ_Metadata> EOD; $dom = new DOMDocument; $dom->loadXML($xml); print_r($dom->getElementsByTagName("gmd:fileIdentifier")); ?>
Output for 5.3.11 - 5.3.29, 5.4.1 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
DOMNodeList Object ( [length] => 0 )
Output for 5.0.0 - 5.3.10, 5.4.0
DOMNodeList Object ( )
Output for 4.3.2 - 4.4.1, 4.4.3 - 4.4.9
Fatal error: Cannot instantiate non-existent class: domdocument in /in/s6VSn on line 11
Process exited with code 255.
Output for 4.4.2
Fatal error: Cannot instantiate non-existent class: domdocument in /in/s6VSn on line 12
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: domdocument in /in/s6VSn on line 11