3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $doc = new DOMDocument; $doc->preserveWhiteSpace = false; $doc->load('http://mdoerrdev.com/xml/updates-mits.xml'); $xpath = new DOMXPath($doc); var_dump($doc->getElementById('550584'));
Output for 5.2.6 - 7.1.0
Warning: DOMDocument::load(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/N8oeQ on line 5 Warning: DOMDocument::load(http://mdoerrdev.com/xml/updates-mits.xml): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/N8oeQ on line 5 Warning: DOMDocument::load(): I/O warning : failed to load external entity "http://mdoerrdev.com/xml/updates-mits.xml" in /in/N8oeQ on line 5 NULL
Output for 5.1.0 - 5.2.5
Warning: DOMDocument::load(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/N8oeQ on line 5 Warning: DOMDocument::load(http://mdoerrdev.com/xml/updates-mits.xml): failed to open stream: Connection refused in /in/N8oeQ on line 5 Warning: DOMDocument::load(): I/O warning : failed to load external entity "http://mdoerrdev.com/xml/updates-mits.xml" in /in/N8oeQ on line 5 NULL
Output for 5.0.3 - 5.0.5
Warning: DOMDocument::load(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/N8oeQ on line 5 Warning: DOMDocument::load(http://mdoerrdev.com/xml/updates-mits.xml): failed to open stream: Connection refused in /in/N8oeQ on line 5 Warning: connection refusedI/O warning : failed to load external entity "http://mdoerrdev.com/xml/updates-mits.xml" in /in/N8oeQ on line 5 NULL
Output for 5.0.1 - 5.0.2
Warning: DOMDocument::load(): php_network_getaddresses: gethostbyname failed in /in/N8oeQ on line 5 Warning: DOMDocument::load(http://mdoerrdev.com/xml/updates-mits.xml): failed to open stream: Success in /in/N8oeQ on line 5 Warning: connection refusedI/O warning : failed to load external entity "http://mdoerrdev.com/xml/updates-mits.xml" in /in/N8oeQ on line 5 NULL
Output for 5.0.0
Warning: DOMDocument::load(): php_network_getaddresses: gethostbyname failed in /in/N8oeQ on line 5 Warning: DOMDocument::load(http://mdoerrdev.com/xml/updates-mits.xml): failed to open stream: Bad file descriptor in /in/N8oeQ on line 5 Warning: connection refusedI/O warning : failed to load external entity "http://mdoerrdev.com/xml/updates-mits.xml" in /in/N8oeQ on line 5 NULL
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: domdocument in /in/N8oeQ on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: domdocument in /in/N8oeQ on line 3