3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $options = array( 'exceptions'=>true, 'trace'=>1, 'cache_wsdl'=>0 ); try{ $client = new SoapClient('http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation', $options); } catch(SoapFault $ex) { var_dump($ex); }
based on OL16u
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/dfe2L:10 Stack trace: #0 {main} thrown in /in/dfe2L on line 10
Process exited with code 255.
Output for hhvm-3.12.0
object(SoapFault)#2 (14) { ["faultcode"]=> string(4) "WSDL" ["faultcodens"]=> NULL ["faultstring"]=> string(112) "SOAP_ERROR: Parsing WSDL: Couldn't load from 'http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation'" ["faultactor"]=> NULL ["detail"]=> NULL ["_name"]=> NULL ["headerfault"]=> NULL ["message":protected]=> string(112) "SOAP_ERROR: Parsing WSDL: Couldn't load from 'http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation'" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/dfe2L" ["line":protected]=> int(10) ["trace":"Exception":private]=> array(1) { [0]=> array(6) { ["file"]=> string(9) "/in/dfe2L" ["line"]=> int(10) ["function"]=> string(11) "__construct" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(65) "http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation" [1]=> array(3) { ["exceptions"]=> bool(true) ["trace"]=> int(1) ["cache_wsdl"]=> int(0) } } } } ["previous":"Exception":private]=> NULL }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.34 - 5.4.43, 5.4.45 - 5.6.28
Fatal error: Class 'SoapClient' not found in /in/dfe2L on line 10
Process exited with code 255.
Output for 5.4.44

Process exited with code 137.
Output for 5.3.0 - 5.4.32
object(SoapFault)#2 (9) { ["message":protected]=> string(214) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation' : failed to load external entity "http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation" " ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/dfe2L" ["line":protected]=> int(10) ["trace":"Exception":private]=> array(1) { [0]=> array(6) { ["file"]=> string(9) "/in/dfe2L" ["line"]=> int(10) ["function"]=> string(10) "SoapClient" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(65) "http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation" [1]=> array(3) { ["exceptions"]=> bool(true) ["trace"]=> int(1) ["cache_wsdl"]=> int(0) } } } } ["previous":"Exception":private]=> NULL ["faultstring"]=> string(214) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation' : failed to load external entity "http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation" " ["faultcode"]=> string(4) "WSDL" }
Process exited with code 255.
Output for 5.2.7 - 5.2.17
Warning: SoapClient::SoapClient(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/dfe2L on line 10 Warning: SoapClient::SoapClient(http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/dfe2L on line 10 Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation" in /in/dfe2L on line 10 object(SoapFault)#2 (8) { ["message:protected"]=> string(214) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation' : failed to load external entity "http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation" " ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/dfe2L" ["line:protected"]=> int(10) ["trace:private"]=> array(1) { [0]=> array(6) { ["file"]=> string(9) "/in/dfe2L" ["line"]=> int(10) ["function"]=> string(10) "SoapClient" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(65) "http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation" [1]=> array(3) { ["exceptions"]=> bool(true) ["trace"]=> int(1) ["cache_wsdl"]=> int(0) } } } } ["faultstring"]=> string(214) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation' : failed to load external entity "http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation" " ["faultcode"]=> string(4) "WSDL" }
Process exited with code 255.
Output for 5.2.6
Warning: SoapClient::SoapClient(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/dfe2L on line 10 Warning: SoapClient::SoapClient(http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/dfe2L on line 10 Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation" in /in/dfe2L on line 10 object(SoapFault)#2 (8) { ["message:protected"]=> string(112) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation'" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/dfe2L" ["line:protected"]=> int(10) ["trace:private"]=> array(1) { [0]=> array(6) { ["file"]=> string(9) "/in/dfe2L" ["line"]=> int(10) ["function"]=> string(10) "SoapClient" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(65) "http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation" [1]=> array(3) { ["exceptions"]=> bool(true) ["trace"]=> int(1) ["cache_wsdl"]=> int(0) } } } } ["faultstring"]=> string(112) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation'" ["faultcode"]=> string(4) "WSDL" }
Process exited with code 255.
Output for 5.2.0 - 5.2.5
Warning: SoapClient::SoapClient(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/dfe2L on line 10 Warning: SoapClient::SoapClient(http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation): failed to open stream: Connection refused in /in/dfe2L on line 10 Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation" in /in/dfe2L on line 10 object(SoapFault)#2 (8) { ["message:protected"]=> string(112) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation'" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/dfe2L" ["line:protected"]=> int(10) ["trace:private"]=> array(1) { [0]=> array(6) { ["file"]=> string(9) "/in/dfe2L" ["line"]=> int(10) ["function"]=> string(10) "SoapClient" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(65) "http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation" [1]=> array(3) { ["exceptions"]=> bool(true) ["trace"]=> int(1) ["cache_wsdl"]=> int(0) } } } } ["faultstring"]=> string(112) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation'" ["faultcode"]=> string(4) "WSDL" }
Process exited with code 255.
Output for 5.1.3 - 5.1.6
Warning: SoapClient::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/dfe2L on line 10 Warning: SoapClient::__construct(http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation): failed to open stream: Connection refused in /in/dfe2L on line 10 Warning: SoapClient::__construct(): I/O warning : failed to load external entity "http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation" in /in/dfe2L on line 10 object(SoapFault)#2 (8) { ["message:protected"]=> string(112) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation'" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/dfe2L" ["line:protected"]=> int(10) ["trace:private"]=> array(1) { [0]=> array(6) { ["file"]=> string(9) "/in/dfe2L" ["line"]=> int(10) ["function"]=> string(11) "__construct" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(65) "http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation" [1]=> array(3) { ["exceptions"]=> bool(true) ["trace"]=> int(1) ["cache_wsdl"]=> int(0) } } } } ["faultstring"]=> string(112) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation'" ["faultcode"]=> string(4) "WSDL" }
Process exited with code 255.
Output for 5.1.0 - 5.1.2
Warning: SoapClient::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/dfe2L on line 10 Warning: SoapClient::__construct(http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation): failed to open stream: Connection refused in /in/dfe2L on line 10 Warning: SoapClient::__construct(): I/O warning : failed to load external entity "http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation" in /in/dfe2L on line 10 object(SoapFault)#2 (8) { ["message:protected"]=> string(0) "" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/dfe2L" ["line:protected"]=> int(10) ["trace:private"]=> array(1) { [0]=> array(6) { ["file"]=> string(9) "/in/dfe2L" ["line"]=> int(10) ["function"]=> string(11) "__construct" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(65) "http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation" [1]=> array(3) { ["exceptions"]=> bool(true) ["trace"]=> int(1) ["cache_wsdl"]=> int(0) } } } } ["faultstring"]=> string(112) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation'" ["faultcode"]=> string(4) "WSDL" }
Process exited with code 255.
Output for 5.0.4 - 5.0.5
Warning: SoapClient::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/dfe2L on line 10 Warning: SoapClient::__construct(http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation): failed to open stream: Connection refused in /in/dfe2L on line 10 Warning: connection refusedI/O warning : failed to load external entity "http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation" in /in/dfe2L on line 10 object(SoapFault)#2 (8) { ["message:protected"]=> string(0) "" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/dfe2L" ["line:protected"]=> int(10) ["trace:private"]=> array(1) { [0]=> array(6) { ["file"]=> string(9) "/in/dfe2L" ["line"]=> int(10) ["function"]=> string(11) "__construct" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(65) "http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation" [1]=> array(3) { ["exceptions"]=> bool(true) ["trace"]=> int(1) ["cache_wsdl"]=> int(0) } } } } ["faultstring"]=> string(112) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation'" ["faultcode"]=> string(4) "WSDL" }
Process exited with code 255.
Output for 5.0.3
object(SoapFault)#2 (8) { ["message:protected"]=> string(0) "" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/dfe2L" ["line:protected"]=> int(10) ["trace:private"]=> array(1) { [0]=> array(6) { ["file"]=> string(9) "/in/dfe2L" ["line"]=> int(10) ["function"]=> string(11) "__construct" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(2) { [0]=> string(65) "http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation" [1]=> array(3) { ["exceptions"]=> bool(true) ["trace"]=> int(1) ["cache_wsdl"]=> int(0) } } } } ["faultstring"]=> string(112) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation'" ["faultcode"]=> string(4) "WSDL" }
Output for 5.0.0 - 5.0.2
object(SoapFault)#2 (8) { ["message:protected"]=> string(0) "" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/dfe2L" ["line:protected"]=> int(10) ["trace:private"]=> array(0) { } ["faultstring"]=> string(112) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://wsf.cdyne.com/WeatherWS/Weather.asmx/GetWeatherInformation'" ["faultcode"]=> string(4) "WSDL" }
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '{' in /in/dfe2L on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected '{' in /in/dfe2L on line 9
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/dfe2L on line 9
Process exited with code 255.