3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SoapClientImpl extends SoapClient { private static $WSDL = "http://ideone.com/api/1/service.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 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: Class "SoapClient" not found in /in/rb33c:3 Stack trace: #0 {main} thrown in /in/rb33c on line 3
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/rb33c:3 Stack trace: #0 {main} thrown in /in/rb33c 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.38, 7.0.0 - 7.0.32, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33
Fatal error: Class 'SoapClient' not found in /in/rb33c on line 3
Process exited with code 255.
Output for 5.3.3 - 5.3.29
object(SoapFault)#2 (9) { ["message":protected]=> string(156) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ideone.com/api/1/service.wsdl' : failed to load external entity "http://ideone.com/api/1/service.wsdl" " ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/rb33c" ["line":protected]=> int(9) ["trace":"Exception":private]=> array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/rb33c" ["line"]=> int(9) ["function"]=> string(10) "SoapClient" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(36) "http://ideone.com/api/1/service.wsdl" } } [1]=> array(6) { ["file"]=> string(9) "/in/rb33c" ["line"]=> int(17) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["previous":"Exception":private]=> NULL ["faultstring"]=> string(156) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ideone.com/api/1/service.wsdl' : failed to load external entity "http://ideone.com/api/1/service.wsdl" " ["faultcode"]=> string(4) "WSDL" } Fatal error: Uncaught SoapFault exception: [Client] Error finding "uri" property in /in/rb33c:18 Stack trace: #0 /in/rb33c(18): SoapClient->__call('getLanguages', Array) #1 /in/rb33c(18): SoapClientImpl->getLanguages('Achrome', 'webinstitute') #2 {main} thrown in /in/rb33c on line 18
Process exited with code 255.
Output for 5.3.0 - 5.3.2
object(SoapFault)#2 (9) { ["message":protected]=> string(156) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ideone.com/api/1/service.wsdl' : failed to load external entity "http://ideone.com/api/1/service.wsdl" " ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/rb33c" ["line":protected]=> int(9) ["trace":"Exception":private]=> array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/rb33c" ["line"]=> int(9) ["function"]=> string(10) "SoapClient" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(36) "http://ideone.com/api/1/service.wsdl" } } [1]=> array(6) { ["file"]=> string(9) "/in/rb33c" ["line"]=> int(17) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["previous":"Exception":private]=> NULL ["faultstring"]=> string(156) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ideone.com/api/1/service.wsdl' : failed to load external entity "http://ideone.com/api/1/service.wsdl" " ["faultcode"]=> string(4) "WSDL" } Fatal error: Uncaught SoapFault exception: [Client] Error finding "uri" property in /in/rb33c:18 Stack trace: #0 [internal function]: SoapClient->__call('getLanguages', Array) #1 /in/rb33c(18): SoapClientImpl->getLanguages('Achrome', 'webinstitute') #2 {main} thrown in /in/rb33c 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/rb33c on line 9 Warning: SoapClient::SoapClient(http://ideone.com/api/1/service.wsdl): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/rb33c on line 9 Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "http://ideone.com/api/1/service.wsdl" in /in/rb33c on line 9 object(SoapFault)#2 (8) { ["message:protected"]=> string(156) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ideone.com/api/1/service.wsdl' : failed to load external entity "http://ideone.com/api/1/service.wsdl" " ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/rb33c" ["line:protected"]=> int(9) ["trace:private"]=> array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/rb33c" ["line"]=> int(9) ["function"]=> string(10) "SoapClient" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(36) "http://ideone.com/api/1/service.wsdl" } } [1]=> array(6) { ["file"]=> string(9) "/in/rb33c" ["line"]=> int(17) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["faultstring"]=> string(156) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ideone.com/api/1/service.wsdl' : failed to load external entity "http://ideone.com/api/1/service.wsdl" " ["faultcode"]=> string(4) "WSDL" } Fatal error: Uncaught SoapFault exception: [Client] Error finding "uri" property in /in/rb33c:18 Stack trace: #0 /in/rb33c(18): SoapClient->__call('getLanguages', Array) #1 /in/rb33c(18): SoapClientImpl->getLanguages('Achrome', 'webinstitute') #2 {main} thrown in /in/rb33c 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/rb33c on line 9 Warning: SoapClient::SoapClient(http://ideone.com/api/1/service.wsdl): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/rb33c on line 9 Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "http://ideone.com/api/1/service.wsdl" in /in/rb33c on line 9 object(SoapFault)#2 (8) { ["message:protected"]=> string(156) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ideone.com/api/1/service.wsdl' : failed to load external entity "http://ideone.com/api/1/service.wsdl" " ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/rb33c" ["line:protected"]=> int(9) ["trace:private"]=> array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/rb33c" ["line"]=> int(9) ["function"]=> string(10) "SoapClient" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(36) "http://ideone.com/api/1/service.wsdl" } } [1]=> array(6) { ["file"]=> string(9) "/in/rb33c" ["line"]=> int(17) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["faultstring"]=> string(156) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ideone.com/api/1/service.wsdl' : failed to load external entity "http://ideone.com/api/1/service.wsdl" " ["faultcode"]=> string(4) "WSDL" } Fatal error: Uncaught SoapFault exception: [Client] Error finding "uri" property in /in/rb33c:18 Stack trace: #0 [internal function]: SoapClient->__call('getLanguages', Array) #1 /in/rb33c(18): SoapClientImpl->getLanguages('Achrome', 'webinstitute') #2 {main} thrown in /in/rb33c 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/rb33c on line 9 Warning: SoapClient::SoapClient(http://ideone.com/api/1/service.wsdl): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/rb33c on line 9 Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "http://ideone.com/api/1/service.wsdl" in /in/rb33c on line 9 object(SoapFault)#2 (8) { ["message:protected"]=> string(83) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ideone.com/api/1/service.wsdl'" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/rb33c" ["line:protected"]=> int(9) ["trace:private"]=> array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/rb33c" ["line"]=> int(9) ["function"]=> string(10) "SoapClient" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(36) "http://ideone.com/api/1/service.wsdl" } } [1]=> array(6) { ["file"]=> string(9) "/in/rb33c" ["line"]=> int(17) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["faultstring"]=> string(83) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ideone.com/api/1/service.wsdl'" ["faultcode"]=> string(4) "WSDL" } Fatal error: Uncaught SoapFault exception: [Client] Error finding "uri" property in /in/rb33c:18 Stack trace: #0 [internal function]: SoapClient->__call('getLanguages', Array) #1 /in/rb33c(18): SoapClientImpl->getLanguages('Achrome', 'webinstitute') #2 {main} thrown in /in/rb33c 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/rb33c on line 9 Warning: SoapClient::SoapClient(http://ideone.com/api/1/service.wsdl): failed to open stream: Connection refused in /in/rb33c on line 9 Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "http://ideone.com/api/1/service.wsdl" in /in/rb33c on line 9 object(SoapFault)#2 (8) { ["message:protected"]=> string(83) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ideone.com/api/1/service.wsdl'" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/rb33c" ["line:protected"]=> int(9) ["trace:private"]=> array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/rb33c" ["line"]=> int(9) ["function"]=> string(10) "SoapClient" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(36) "http://ideone.com/api/1/service.wsdl" } } [1]=> array(6) { ["file"]=> string(9) "/in/rb33c" ["line"]=> int(17) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["faultstring"]=> string(83) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ideone.com/api/1/service.wsdl'" ["faultcode"]=> string(4) "WSDL" } Fatal error: Uncaught SoapFault exception: [Client] Error finding "uri" property in /in/rb33c:18 Stack trace: #0 [internal function]: SoapClient->__call('getLanguages', Array) #1 /in/rb33c(18): SoapClientImpl->getLanguages('Achrome', 'webinstitute') #2 {main} thrown in /in/rb33c 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/rb33c on line 9 Warning: SoapClient::__construct(http://ideone.com/api/1/service.wsdl): failed to open stream: Connection refused in /in/rb33c on line 9 Warning: SoapClient::__construct(): I/O warning : failed to load external entity "http://ideone.com/api/1/service.wsdl" in /in/rb33c on line 9 object(SoapFault)#2 (8) { ["message:protected"]=> string(83) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ideone.com/api/1/service.wsdl'" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/rb33c" ["line:protected"]=> int(9) ["trace:private"]=> array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/rb33c" ["line"]=> int(9) ["function"]=> string(11) "__construct" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(36) "http://ideone.com/api/1/service.wsdl" } } [1]=> array(6) { ["file"]=> string(9) "/in/rb33c" ["line"]=> int(17) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["faultstring"]=> string(83) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ideone.com/api/1/service.wsdl'" ["faultcode"]=> string(4) "WSDL" } Fatal error: Uncaught SoapFault exception: [Client] Error finding "uri" property in /in/rb33c:18 Stack trace: #0 [internal function]: SoapClient->__call('getLanguages', Array) #1 /in/rb33c(18): SoapClientImpl->getLanguages('Achrome', 'webinstitute') #2 {main} thrown in /in/rb33c 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/rb33c on line 9 Warning: SoapClient::__construct(http://ideone.com/api/1/service.wsdl): failed to open stream: Connection refused in /in/rb33c on line 9 Warning: SoapClient::__construct(): I/O warning : failed to load external entity "http://ideone.com/api/1/service.wsdl" in /in/rb33c on line 9 object(SoapFault)#2 (8) { ["message:protected"]=> string(0) "" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/rb33c" ["line:protected"]=> int(9) ["trace:private"]=> array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/rb33c" ["line"]=> int(9) ["function"]=> string(11) "__construct" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(36) "http://ideone.com/api/1/service.wsdl" } } [1]=> array(6) { ["file"]=> string(9) "/in/rb33c" ["line"]=> int(17) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["faultstring"]=> string(83) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ideone.com/api/1/service.wsdl'" ["faultcode"]=> string(4) "WSDL" } Fatal error: Uncaught SoapFault exception: [Client] Error finding "uri" property in /in/rb33c:18 Stack trace: #0 [internal function]: SoapClient->__call('getLanguages', Array) #1 /in/rb33c(18): SoapClientImpl->getLanguages('Achrome', 'webinstitute') #2 {main} thrown in /in/rb33c 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/rb33c on line 9 Warning: SoapClient::__construct(http://ideone.com/api/1/service.wsdl): failed to open stream: Connection refused in /in/rb33c on line 9 Warning: connection refusedI/O warning : failed to load external entity "http://ideone.com/api/1/service.wsdl" in /in/rb33c on line 9 object(SoapFault)#2 (8) { ["message:protected"]=> string(0) "" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/rb33c" ["line:protected"]=> int(9) ["trace:private"]=> array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/rb33c" ["line"]=> int(9) ["function"]=> string(11) "__construct" ["class"]=> string(10) "SoapClient" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(36) "http://ideone.com/api/1/service.wsdl" } } [1]=> array(6) { ["file"]=> string(9) "/in/rb33c" ["line"]=> int(17) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["faultstring"]=> string(83) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ideone.com/api/1/service.wsdl'" ["faultcode"]=> string(4) "WSDL" } Fatal error: Uncaught SoapFault exception: [Client] Error finding "uri" property in /in/rb33c:18 Stack trace: #0 [internal function]: SoapClient->__call('getLanguages', Array) #1 /in/rb33c(18): SoapClientImpl->getLanguages('Achrome', 'webinstitute') #2 {main} thrown in /in/rb33c 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/rb33c on line 9 Warning: SoapClient::__construct(http://ideone.com/api/1/service.wsdl): failed to open stream: Connection refused in /in/rb33c on line 9 Warning: connection refusedI/O warning : failed to load external entity "http://ideone.com/api/1/service.wsdl" in /in/rb33c on line 9 object(SoapFault)#2 (8) { ["message:protected"]=> string(0) "" ["string:private"]=> string(0) "" ["code:protected"]=> int(0) ["file:protected"]=> string(9) "/in/rb33c" ["line:protected"]=> int(9) ["trace:private"]=> array(2) { [0]=> array(6) { ["file"]=> string(9) "/in/rb33c" ["line"]=> int(9) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(1) { [0]=> string(36) "http://ideone.com/api/1/service.wsdl" } } [1]=> array(6) { ["file"]=> string(9) "/in/rb33c" ["line"]=> int(17) ["function"]=> string(11) "__construct" ["class"]=> string(14) "SoapClientImpl" ["type"]=> string(2) "->" ["args"]=> array(0) { } } } ["faultstring"]=> string(83) "SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://ideone.com/api/1/service.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://ideone.com/api/1/service.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/rb33c on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /in/rb33c 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/rb33c on line 5
Process exited with code 255.

preferences:
325.57 ms | 401 KiB | 449 Q