3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xmlrif = new SimpleXMLElement("http://contribuyente.seniat.gob.ve/getContribuyente/getrif?rif=V160277390", null, true); //$xmlrif = simplexml_load_file($string); //echo $xmlrif->rif; print_r($xmlrif);
based on pSpQF
Output for 7.0.4, 7.0.20, 7.1.5 - 7.2.0
Warning: SimpleXMLElement::__construct(): php_network_getaddresses: getaddrinfo failed: System error in /in/kNs5Q on line 3 Warning: SimpleXMLElement::__construct(http://contribuyente.seniat.gob.ve/getContribuyente/getrif?rif=V160277390): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/kNs5Q on line 3 Warning: SimpleXMLElement::__construct(): I/O warning : failed to load external entity "http://contribuyente.seniat.gob.ve/getContribuyente/getrif?rif=V160277390" in /in/kNs5Q on line 3 Fatal error: Uncaught Exception: String could not be parsed as XML in /in/kNs5Q:3 Stack trace: #0 /in/kNs5Q(3): SimpleXMLElement->__construct('http://contribu...', NULL, true) #1 {main} thrown in /in/kNs5Q on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.3, 7.0.5 - 7.0.6, 7.1.0
Warning: SimpleXMLElement::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/kNs5Q on line 3 Warning: SimpleXMLElement::__construct(http://contribuyente.seniat.gob.ve/getContribuyente/getrif?rif=V160277390): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/kNs5Q on line 3 Warning: SimpleXMLElement::__construct(): I/O warning : failed to load external entity "http://contribuyente.seniat.gob.ve/getContribuyente/getrif?rif=V160277390" in /in/kNs5Q on line 3 Fatal error: Uncaught Exception: String could not be parsed as XML in /in/kNs5Q:3 Stack trace: #0 /in/kNs5Q(3): SimpleXMLElement->__construct('http://contribu...', NULL, true) #1 {main} thrown in /in/kNs5Q on line 3
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: SimpleXMLElement::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/kNs5Q on line 3 Warning: SimpleXMLElement::__construct(http://contribuyente.seniat.gob.ve/getContribuyente/getrif?rif=V160277390): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/kNs5Q on line 3 Warning: SimpleXMLElement::__construct(): I/O warning : failed to load external entity "http://contribuyente.seniat.gob.ve/getContribuyente/getrif?rif=V160277390" in /in/kNs5Q on line 3 Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /in/kNs5Q:3 Stack trace: #0 /in/kNs5Q(3): SimpleXMLElement->__construct('http://contribu...', 0, true) #1 {main} thrown in /in/kNs5Q on line 3
Process exited with code 255.
Output for 5.3.18 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19
Warning: SimpleXMLElement::__construct(): php_network_getaddresses: getaddrinfo failed: System error in /in/kNs5Q on line 3 Warning: SimpleXMLElement::__construct(http://contribuyente.seniat.gob.ve/getContribuyente/getrif?rif=V160277390): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/kNs5Q on line 3 Warning: SimpleXMLElement::__construct(): I/O warning : failed to load external entity "http://contribuyente.seniat.gob.ve/getContribuyente/getrif?rif=V160277390" in /in/kNs5Q on line 3 Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /in/kNs5Q:3 Stack trace: #0 /in/kNs5Q(3): SimpleXMLElement->__construct('http://contribu...', 0, true) #1 {main} thrown in /in/kNs5Q on line 3
Process exited with code 255.