3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $doc = new DOMDocument; $doc->load('https://raw.github.com/gist/3306302/5279fe329e553518f4edb26090504ffe15ea4c05/xmlexample.xml');
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 7.0.3, 7.0.5 - 7.1.0
Warning: DOMDocument::load(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/MmkvL on line 4 Warning: DOMDocument::load(https://raw.github.com/gist/3306302/5279fe329e553518f4edb26090504ffe15ea4c05/xmlexample.xml): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/MmkvL on line 4 Warning: DOMDocument::load(): I/O warning : failed to load external entity "https://raw.github.com/gist/3306302/5279fe329e553518f4edb26090504ffe15ea4c05/xmlexample.xml" in /in/MmkvL on line 4
Output for 5.4.15 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19, 7.0.4
Warning: DOMDocument::load(): php_network_getaddresses: getaddrinfo failed: System error in /in/MmkvL on line 4 Warning: DOMDocument::load(https://raw.github.com/gist/3306302/5279fe329e553518f4edb26090504ffe15ea4c05/xmlexample.xml): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/MmkvL on line 4 Warning: DOMDocument::load(): I/O warning : failed to load external entity "https://raw.github.com/gist/3306302/5279fe329e553518f4edb26090504ffe15ea4c05/xmlexample.xml" in /in/MmkvL on line 4
Output for 5.3.0 - 5.4.14
Warning: DOMDocument::load(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/MmkvL on line 4 Warning: DOMDocument::load(): I/O warning : failed to load external entity "https://raw.github.com/gist/3306302/5279fe329e553518f4edb26090504ffe15ea4c05/xmlexample.xml" in /in/MmkvL on line 4
Output for 5.1.0 - 5.2.17
Notice: DOMDocument::load(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/MmkvL on line 4 Warning: DOMDocument::load(): I/O warning : failed to load external entity "https://raw.github.com/gist/3306302/5279fe329e553518f4edb26090504ffe15ea4c05/xmlexample.xml" in /in/MmkvL on line 4
Output for 5.0.0 - 5.0.5
Notice: DOMDocument::load(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/MmkvL on line 4 Notice: DOMDocument::load(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/MmkvL on line 4 Warning: I/O warning : failed to load external entity "https://raw.github.com/gist/3306302/5279fe329e553518f4edb26090504ffe15ea4c05/xmlexample.xml" in /in/MmkvL on line 4
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: domdocument in /in/MmkvL 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/MmkvL on line 3