3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = new DOMDocument; $d->load( 'https://feeds.feedburner.com/Newbreak-Video' ); $x = new DOMXPath( $a ); $l1 = $x->query( '//*' ); $l2 = $x->query( '//itunes:*' ); var_dump( $l1->length, $l2->length );
Output for 7.0.4, 7.0.20, 7.1.5 - 7.2.0
Warning: DOMDocument::load(): php_network_getaddresses: getaddrinfo failed: System error in /in/oTt1L on line 3 Warning: DOMDocument::load(https://feeds.feedburner.com/Newbreak-Video): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/oTt1L on line 3 Warning: DOMDocument::load(): I/O warning : failed to load external entity "https://feeds.feedburner.com/Newbreak-Video" in /in/oTt1L on line 3 Notice: Undefined variable: a in /in/oTt1L on line 4 Fatal error: Uncaught TypeError: Argument 1 passed to DOMXPath::__construct() must be an instance of DOMDocument, null given in /in/oTt1L:4 Stack trace: #0 /in/oTt1L(4): DOMXPath->__construct(NULL) #1 {main} thrown in /in/oTt1L on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.3, 7.0.5 - 7.0.6, 7.1.0
Warning: DOMDocument::load(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/oTt1L on line 3 Warning: DOMDocument::load(https://feeds.feedburner.com/Newbreak-Video): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/oTt1L on line 3 Warning: DOMDocument::load(): I/O warning : failed to load external entity "https://feeds.feedburner.com/Newbreak-Video" in /in/oTt1L on line 3 Notice: Undefined variable: a in /in/oTt1L on line 4 Fatal error: Uncaught TypeError: Argument 1 passed to DOMXPath::__construct() must be an instance of DOMDocument, null given in /in/oTt1L:4 Stack trace: #0 /in/oTt1L(4): DOMXPath->__construct(NULL) #1 {main} thrown in /in/oTt1L on line 4
Process exited with code 255.
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 5.6.28
Warning: DOMDocument::load(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/oTt1L on line 3 Warning: DOMDocument::load(https://feeds.feedburner.com/Newbreak-Video): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/oTt1L on line 3 Warning: DOMDocument::load(): I/O warning : failed to load external entity "https://feeds.feedburner.com/Newbreak-Video" in /in/oTt1L on line 3 Notice: Undefined variable: a in /in/oTt1L on line 4 Catchable fatal error: Argument 1 passed to DOMXPath::__construct() must be an instance of DOMDocument, null given in /in/oTt1L on line 4
Process exited with code 255.
Output for 5.4.15 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19
Warning: DOMDocument::load(): php_network_getaddresses: getaddrinfo failed: System error in /in/oTt1L on line 3 Warning: DOMDocument::load(https://feeds.feedburner.com/Newbreak-Video): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/oTt1L on line 3 Warning: DOMDocument::load(): I/O warning : failed to load external entity "https://feeds.feedburner.com/Newbreak-Video" in /in/oTt1L on line 3 Notice: Undefined variable: a in /in/oTt1L on line 4 Catchable fatal error: Argument 1 passed to DOMXPath::__construct() must be an instance of DOMDocument, null given in /in/oTt1L on line 4
Process exited with code 255.
Output for 5.3.20 - 5.4.14
Warning: DOMDocument::load(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/oTt1L on line 3 Warning: DOMDocument::load(): I/O warning : failed to load external entity "https://feeds.feedburner.com/Newbreak-Video" in /in/oTt1L on line 3 Notice: Undefined variable: a in /in/oTt1L on line 4 Catchable fatal error: Argument 1 passed to DOMXPath::__construct() must be an instance of DOMDocument, null given in /in/oTt1L on line 4
Process exited with code 255.