3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "LIBXML_DOTTED_VERSION: ", 1.9,1 , PHP_EOL; $doc = new DOMDocument; $doc->loadXML('<r:r xmlns:r="ns:1" />'); $element = $doc->documentElement; echo $element->nodeName, ' / ', $element->tagName;
Output for 5.0.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
LIBXML_DOTTED_VERSION: 1.91 r:r / r:r
Output for 5.0.0 - 5.0.1
LIBXML_DOTTED_VERSION: 1.91 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/H84lB on line 3 PHP_EOLr:r / r:r
Output for 4.3.10 - 4.4.9
LIBXML_DOTTED_VERSION: 1.91 Fatal error: Cannot instantiate non-existent class: domdocument in /in/H84lB on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.9
LIBXML_DOTTED_VERSION: 1.91 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/H84lB on line 3 PHP_EOL Fatal error: Cannot instantiate non-existent class: domdocument in /in/H84lB on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
LIBXML_DOTTED_VERSION: 1.91 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/H84lB on line 3 PHP_EOL Fatal error: Cannot instantiate non-existent class: domdocument in /in/H84lB on line 5