3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class SoapClientImpl extends SoapClient { private static $WSDL = "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl"; public function __construct() { try { parent::__construct(self::$WSDL); } catch(Exception $e) { var_dump($e); } } } $client = new SoapClientImpl(); $languages = $client->getLanguages('Achrome', 'webinstitute'); var_dump($languages);
Output for 5.4.0 - 7.1.0
Fatal error: Class 'SoapClient' not found in /in/upoiN on line 3
Process exited with code 255.
Output for 5.3.3 - 5.3.29
object(SoapFault)#2 (9) { ["message":protected]=> string(218) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl' : failed to load external entity "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" " ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/upoiN" ["line":protected]=> int(9) ["trace":"Exception":private]=> array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/upoiN" ["line"]=> int(9) ["function"]=> string(10) "SoapClient" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(67) "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" } } [1]=> array(6) { ["file"]=> string(9) "/in/upoiN" ["line"]=> int(17) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["previous":"Exception":private]=> NULL ["faultstring"]=> string(218) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl' : failed to load external entity "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" " ["faultcode"]=> string(4) "WSDL" } Fatal error: Uncaught SoapFault exception: [Client] Error finding "uri" property in /in/upoiN:18 Stack trace: #0 /in/upoiN(18): SoapClient->__call('getLanguages', Array) #1 /in/upoiN(18): SoapClientImpl->getLanguages('Achrome', 'webinstitute') #2 {main} thrown in /in/upoiN on line 18
Process exited with code 255.
Output for 5.3.0 - 5.3.2
object(SoapFault)#2 (9) { ["message":protected]=> string(218) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl' : failed to load external entity "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" " ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/upoiN" ["line":protected]=> int(9) ["trace":"Exception":private]=> array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/upoiN" ["line"]=> int(9) ["function"]=> string(10) "SoapClient" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(67) "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" } } [1]=> array(6) { ["file"]=> string(9) "/in/upoiN" ["line"]=> int(17) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["previous":"Exception":private]=> NULL ["faultstring"]=> string(218) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl' : failed to load external entity "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" " ["faultcode"]=> string(4) "WSDL" } Fatal error: Uncaught SoapFault exception: [Client] Error finding "uri" property in /in/upoiN:18 Stack trace: #0 [internal function]: SoapClient->__call('getLanguages', Array) #1 /in/upoiN(18): SoapClientImpl->getLanguages('Achrome', 'webinstitute') #2 {main} thrown in /in/upoiN on line 18
Process exited with code 255.
Output for 5.2.14 - 5.2.17
Warning: SoapClient::SoapClient(): php_network_getaddresses: getaddrinfo failed: System error in /in/upoiN on line 9 Warning: SoapClient::SoapClient(http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/upoiN on line 9 Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" in /in/upoiN on line 9 object(SoapFault)#2 (8) { ["message:protected"]=> string(218) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl' : failed to load external entity "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" " ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/upoiN" ["line:protected"]=> int(9) ["trace:private"]=> array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/upoiN" ["line"]=> int(9) ["function"]=> string(10) "SoapClient" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(67) "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" } } [1]=> array(6) { ["file"]=> string(9) "/in/upoiN" ["line"]=> int(17) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["faultstring"]=> string(218) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl' : failed to load external entity "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" " ["faultcode"]=> string(4) "WSDL" } Fatal error: Uncaught SoapFault exception: [Client] Error finding "uri" property in /in/upoiN:18 Stack trace: #0 /in/upoiN(18): SoapClient->__call('getLanguages', Array) #1 /in/upoiN(18): SoapClientImpl->getLanguages('Achrome', 'webinstitute') #2 {main} thrown in /in/upoiN on line 18
Process exited with code 255.
Output for 5.2.7 - 5.2.13
Warning: SoapClient::SoapClient(): php_network_getaddresses: getaddrinfo failed: System error in /in/upoiN on line 9 Warning: SoapClient::SoapClient(http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/upoiN on line 9 Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" in /in/upoiN on line 9 object(SoapFault)#2 (8) { ["message:protected"]=> string(218) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl' : failed to load external entity "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" " ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/upoiN" ["line:protected"]=> int(9) ["trace:private"]=> array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/upoiN" ["line"]=> int(9) ["function"]=> string(10) "SoapClient" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(67) "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" } } [1]=> array(6) { ["file"]=> string(9) "/in/upoiN" ["line"]=> int(17) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["faultstring"]=> string(218) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl' : failed to load external entity "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" " ["faultcode"]=> string(4) "WSDL" } Fatal error: Uncaught SoapFault exception: [Client] Error finding "uri" property in /in/upoiN:18 Stack trace: #0 [internal function]: SoapClient->__call('getLanguages', Array) #1 /in/upoiN(18): SoapClientImpl->getLanguages('Achrome', 'webinstitute') #2 {main} thrown in /in/upoiN on line 18
Process exited with code 255.
Output for 5.2.6
Warning: SoapClient::SoapClient(): php_network_getaddresses: getaddrinfo failed: System error in /in/upoiN on line 9 Warning: SoapClient::SoapClient(http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/upoiN on line 9 Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" in /in/upoiN on line 9 object(SoapFault)#2 (8) { ["message:protected"]=> string(114) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl'" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/upoiN" ["line:protected"]=> int(9) ["trace:private"]=> array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/upoiN" ["line"]=> int(9) ["function"]=> string(10) "SoapClient" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(67) "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" } } [1]=> array(6) { ["file"]=> string(9) "/in/upoiN" ["line"]=> int(17) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["faultstring"]=> string(114) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl'" ["faultcode"]=> string(4) "WSDL" } Fatal error: Uncaught SoapFault exception: [Client] Error finding "uri" property in /in/upoiN:18 Stack trace: #0 [internal function]: SoapClient->__call('getLanguages', Array) #1 /in/upoiN(18): SoapClientImpl->getLanguages('Achrome', 'webinstitute') #2 {main} thrown in /in/upoiN on line 18
Process exited with code 255.
Output for 5.2.0 - 5.2.5
Warning: SoapClient::SoapClient(): php_network_getaddresses: getaddrinfo failed: System error in /in/upoiN on line 9 Warning: SoapClient::SoapClient(http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl): failed to open stream: Connection refused in /in/upoiN on line 9 Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" in /in/upoiN on line 9 object(SoapFault)#2 (8) { ["message:protected"]=> string(114) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl'" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/upoiN" ["line:protected"]=> int(9) ["trace:private"]=> array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/upoiN" ["line"]=> int(9) ["function"]=> string(10) "SoapClient" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(67) "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" } } [1]=> array(6) { ["file"]=> string(9) "/in/upoiN" ["line"]=> int(17) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["faultstring"]=> string(114) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl'" ["faultcode"]=> string(4) "WSDL" } Fatal error: Uncaught SoapFault exception: [Client] Error finding "uri" property in /in/upoiN:18 Stack trace: #0 [internal function]: SoapClient->__call('getLanguages', Array) #1 /in/upoiN(18): SoapClientImpl->getLanguages('Achrome', 'webinstitute') #2 {main} thrown in /in/upoiN on line 18
Process exited with code 255.
Output for 5.1.3 - 5.1.6
Warning: SoapClient::__construct(): php_network_getaddresses: getaddrinfo failed: System error in /in/upoiN on line 9 Warning: SoapClient::__construct(http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl): failed to open stream: Connection refused in /in/upoiN on line 9 Warning: SoapClient::__construct(): I/O warning : failed to load external entity "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" in /in/upoiN on line 9 object(SoapFault)#2 (8) { ["message:protected"]=> string(114) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl'" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/upoiN" ["line:protected"]=> int(9) ["trace:private"]=> array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/upoiN" ["line"]=> int(9) ["function"]=> string(11) "__construct" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(67) "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" } } [1]=> array(6) { ["file"]=> string(9) "/in/upoiN" ["line"]=> int(17) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["faultstring"]=> string(114) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl'" ["faultcode"]=> string(4) "WSDL" } Fatal error: Uncaught SoapFault exception: [Client] Error finding "uri" property in /in/upoiN:18 Stack trace: #0 [internal function]: SoapClient->__call('getLanguages', Array) #1 /in/upoiN(18): SoapClientImpl->getLanguages('Achrome', 'webinstitute') #2 {main} thrown in /in/upoiN on line 18
Process exited with code 255.
Output for 5.1.0 - 5.1.2
Warning: SoapClient::__construct(): php_network_getaddresses: getaddrinfo failed: System error in /in/upoiN on line 9 Warning: SoapClient::__construct(http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl): failed to open stream: Connection refused in /in/upoiN on line 9 Warning: SoapClient::__construct(): I/O warning : failed to load external entity "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" in /in/upoiN on line 9 object(SoapFault)#2 (8) { ["message:protected"]=> string(0) "" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/upoiN" ["line:protected"]=> int(9) ["trace:private"]=> array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/upoiN" ["line"]=> int(9) ["function"]=> string(11) "__construct" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(67) "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" } } [1]=> array(6) { ["file"]=> string(9) "/in/upoiN" ["line"]=> int(17) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["faultstring"]=> string(114) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl'" ["faultcode"]=> string(4) "WSDL" } Fatal error: Uncaught SoapFault exception: [Client] Error finding "uri" property in /in/upoiN:18 Stack trace: #0 [internal function]: SoapClient->__call('getLanguages', Array) #1 /in/upoiN(18): SoapClientImpl->getLanguages('Achrome', 'webinstitute') #2 {main} thrown in /in/upoiN on line 18
Process exited with code 255.
Output for 5.0.5
Warning: SoapClient::__construct(): php_network_getaddresses: getaddrinfo failed: System error in /in/upoiN on line 9 Warning: SoapClient::__construct(http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl): failed to open stream: Connection refused in /in/upoiN on line 9 Warning: connection refusedI/O warning : failed to load external entity "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" in /in/upoiN on line 9 object(SoapFault)#2 (8) { ["message:protected"]=> string(0) "" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/upoiN" ["line:protected"]=> int(9) ["trace:private"]=> array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/upoiN" ["line"]=> int(9) ["function"]=> string(11) "__construct" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(67) "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" } } [1]=> array(6) { ["file"]=> string(9) "/in/upoiN" ["line"]=> int(17) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["faultstring"]=> string(114) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl'" ["faultcode"]=> string(4) "WSDL" } Fatal error: Uncaught SoapFault exception: [Client] Error finding "uri" property in /in/upoiN:18 Stack trace: #0 [internal function]: SoapClient->__call('getLanguages', Array) #1 /in/upoiN(18): SoapClientImpl->getLanguages('Achrome', 'webinstitute') #2 {main} thrown in /in/upoiN on line 18
Process exited with code 255.
Output for 5.0.4
Warning: SoapClient::__construct(): php_network_getaddresses: getaddrinfo failed: System error in /in/upoiN on line 9 Warning: SoapClient::__construct(http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl): failed to open stream: Connection refused in /in/upoiN on line 9 Warning: connection refusedI/O warning : failed to load external entity "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" in /in/upoiN on line 9 object(SoapFault)#2 (8) { ["message:protected"]=> string(0) "" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/upoiN" ["line:protected"]=> int(9) ["trace:private"]=> array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/upoiN" ["line"]=> int(9) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(67) "http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl" } } [1]=> array(6) { ["file"]=> string(9) "/in/upoiN" ["line"]=> int(17) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["faultstring"]=> string(114) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl'" ["faultcode"]=> string(4) "WSDL" }
Process exited with code 139.
Output for 5.0.0 - 5.0.3
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>WSDL</faultcode><faultstring>SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://graphical.weather.gov/xml/SOAP_server/ndfdXMLserver.php?wsdl'</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/upoiN on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/upoiN on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_OLD_FUNCTION' or `T_FUNCTION' or `T_VAR' or `'}'' in /in/upoiN on line 5
Process exited with code 255.