3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $doc = new DOMDocument; $doc->load('http://raw.github.com/gist/3306302/5279fe329e553518f4edb26090504ffe15ea4c05/xmlexample.xml');
Output for 5.2.6 - 5.6.28, 7.0.0 - 7.1.0
Warning: DOMDocument::load(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/GeuB4 on line 4 Warning: DOMDocument::load(http://raw.github.com/gist/3306302/5279fe329e553518f4edb26090504ffe15ea4c05/xmlexample.xml): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/GeuB4 on line 4 Warning: DOMDocument::load(): I/O warning : failed to load external entity "http://raw.github.com/gist/3306302/5279fe329e553518f4edb26090504ffe15ea4c05/xmlexample.xml" in /in/GeuB4 on line 4
Output for hhvm-3.10.0 - 3.12.0
Warning: Failed to open http://raw.github.com/gist/3306302/5279fe329e553518f4edb26090504ffe15ea4c05/xmlexample.xml (Could not resolve host: raw.github.com)
Output for 5.1.0 - 5.2.5
Warning: DOMDocument::load(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/GeuB4 on line 4 Warning: DOMDocument::load(http://raw.github.com/gist/3306302/5279fe329e553518f4edb26090504ffe15ea4c05/xmlexample.xml): failed to open stream: Connection refused in /in/GeuB4 on line 4 Warning: DOMDocument::load(): I/O warning : failed to load external entity "http://raw.github.com/gist/3306302/5279fe329e553518f4edb26090504ffe15ea4c05/xmlexample.xml" in /in/GeuB4 on line 4
Output for 5.0.3 - 5.0.5
Warning: DOMDocument::load(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/GeuB4 on line 4 Warning: DOMDocument::load(http://raw.github.com/gist/3306302/5279fe329e553518f4edb26090504ffe15ea4c05/xmlexample.xml): failed to open stream: Connection refused in /in/GeuB4 on line 4 Warning: connection refusedI/O warning : failed to load external entity "http://raw.github.com/gist/3306302/5279fe329e553518f4edb26090504ffe15ea4c05/xmlexample.xml" in /in/GeuB4 on line 4
Output for 5.0.1 - 5.0.2
Warning: DOMDocument::load(): php_network_getaddresses: gethostbyname failed in /in/GeuB4 on line 4 Warning: DOMDocument::load(http://raw.github.com/gist/3306302/5279fe329e553518f4edb26090504ffe15ea4c05/xmlexample.xml): failed to open stream: Success in /in/GeuB4 on line 4 Warning: connection refusedI/O warning : failed to load external entity "http://raw.github.com/gist/3306302/5279fe329e553518f4edb26090504ffe15ea4c05/xmlexample.xml" in /in/GeuB4 on line 4
Output for 5.0.0
Warning: DOMDocument::load(): php_network_getaddresses: gethostbyname failed in /in/GeuB4 on line 4 Warning: DOMDocument::load(http://raw.github.com/gist/3306302/5279fe329e553518f4edb26090504ffe15ea4c05/xmlexample.xml): failed to open stream: Bad file descriptor in /in/GeuB4 on line 4 Warning: connection refusedI/O warning : failed to load external entity "http://raw.github.com/gist/3306302/5279fe329e553518f4edb26090504ffe15ea4c05/xmlexample.xml" in /in/GeuB4 on line 4
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: domdocument in /in/GeuB4 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/GeuB4 on line 3