3v4l.org

run code in 300+ PHP versions simultaneously
<?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);
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Deprecated: SimpleXMLElement::__construct(): Passing null to parameter #2 ($options) of type int is deprecated in /in/kNs5Q on line 3 Warning: SimpleXMLElement::__construct(): php_network_getaddresses: getaddrinfo for contribuyente.seniat.gob.ve 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 for contribuyente.seniat.gob.ve 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 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Deprecated: SimpleXMLElement::__construct(): Passing null to parameter #2 ($options) of type int is deprecated in /in/kNs5Q on line 3 Warning: SimpleXMLElement::__construct(): php_network_getaddresses: getaddrinfo for contribuyente.seniat.gob.ve 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 for contribuyente.seniat.gob.ve 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 8.0.13 - 8.0.30
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 8.0.0 - 8.0.12
Warning: SimpleXMLElement::__construct(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution 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: Temporary failure in name resolution 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.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.26, 7.3.0 - 7.3.13, 7.3.32 - 7.3.33, 7.4.0 - 7.4.1, 7.4.26 - 7.4.33
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.2.29 - 7.2.33, 7.3.16 - 7.3.31, 7.4.3 - 7.4.25
Warning: SimpleXMLElement::__construct(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution 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: Temporary failure in name resolution 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.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
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.

preferences:
261.83 ms | 403 KiB | 376 Q