3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $wsdl_url = 'http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl'; $client = new SOAPClient($wsdl_url); $quote = $client->getQuote('EBAY'); // eBay, Inc. print $quote; ?>
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Class 'SOAPClient' not found in /in/3h5We:4 Stack trace: #0 {main} thrown in /in/3h5We on line 4
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Class 'SOAPClient' not found in /in/3h5We on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl' : failed to load external entity "http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl" in /in/3h5We:4 Stack trace: #0 /in/3h5We(4): SoapClient->SoapClient('http://services...') #1 {main} thrown in /in/3h5We on line 4
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/3h5We on line 4 Warning: SoapClient::SoapClient(http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/3h5We on line 4 Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl" in /in/3h5We on line 4 Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl' : failed to load external entity "http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl" in /in/3h5We:4 Stack trace: #0 /in/3h5We(4): SoapClient->SoapClient('http://services...') #1 {main} thrown in /in/3h5We on line 4
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/3h5We on line 4 Warning: SoapClient::SoapClient(http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/3h5We on line 4 Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl" in /in/3h5We on line 4 Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl' in /in/3h5We:4 Stack trace: #0 /in/3h5We(4): SoapClient->SoapClient('http://services...') #1 {main} thrown in /in/3h5We on line 4
Process exited with code 255.
Output for 5.2.3 - 5.2.5
Warning: SoapClient::SoapClient(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/3h5We on line 4 Warning: SoapClient::SoapClient(http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl): failed to open stream: Connection refused in /in/3h5We on line 4 Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl" in /in/3h5We on line 4 Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl' in /in/3h5We:4 Stack trace: #0 /in/3h5We(4): SoapClient->SoapClient('http://services...') #1 {main} thrown in /in/3h5We on line 4
Process exited with code 255.
Output for 5.2.0 - 5.2.2
<br /> <b>Warning</b>: SoapClient::SoapClient() [<a href='function.SoapClient-SoapClient'>function.SoapClient-SoapClient</a>]: php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>/in/3h5We</b> on line <b>4</b><br /> <br /> <b>Warning</b>: SoapClient::SoapClient(http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl) [<a href='function.SoapClient-SoapClient'>function.SoapClient-SoapClient</a>]: failed to open stream: Connection refused in <b>/in/3h5We</b> on line <b>4</b><br /> <br /> <b>Warning</b>: SoapClient::SoapClient() [<a href='function.SoapClient-SoapClient'>function.SoapClient-SoapClient</a>]: I/O warning : failed to load external entity &quot;http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl&quot; in <b>/in/3h5We</b> on line <b>4</b><br /> <br /> <b>Fatal error</b>: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl' in /in/3h5We:4 Stack trace: #0 /in/3h5We(4): SoapClient-&gt;SoapClient('http://services...') #1 {main} thrown in <b>/in/3h5We</b> on line <b>4</b><br />
Process exited with code 255.
Output for 5.1.3 - 5.1.6
<br /> <b>Warning</b>: SoapClient::__construct() [<a href='function.SoapClient---construct'>function.SoapClient---construct</a>]: php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>/in/3h5We</b> on line <b>4</b><br /> <br /> <b>Warning</b>: SoapClient::__construct(http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl) [<a href='function.SoapClient---construct'>function.SoapClient---construct</a>]: failed to open stream: Connection refused in <b>/in/3h5We</b> on line <b>4</b><br /> <br /> <b>Warning</b>: SoapClient::__construct() [<a href='function.SoapClient---construct'>function.SoapClient---construct</a>]: I/O warning : failed to load external entity &quot;http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl&quot; in <b>/in/3h5We</b> on line <b>4</b><br /> <br /> <b>Fatal error</b>: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl' in /in/3h5We:4 Stack trace: #0 /in/3h5We(4): SoapClient-&gt;__construct('http://services...') #1 {main} thrown in <b>/in/3h5We</b> on line <b>4</b><br />
Process exited with code 255.
Output for 5.1.2
<br /> <b>Warning</b>: SoapClient::__construct() [<a href='function.--construct'>function.--construct</a>]: php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>/in/3h5We</b> on line <b>4</b><br /> <br /> <b>Warning</b>: SoapClient::__construct(http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl) [<a href='function.--construct'>function.--construct</a>]: failed to open stream: Connection refused in <b>/in/3h5We</b> on line <b>4</b><br /> <br /> <b>Warning</b>: SoapClient::__construct() [<a href='function.--construct'>function.--construct</a>]: I/O warning : failed to load external entity &quot;http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl&quot; in <b>/in/3h5We</b> on line <b>4</b><br /> <br /> <b>Fatal error</b>: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl' in /in/3h5We:4 Stack trace: #0 /in/3h5We(4): SoapClient-&gt;__construct('http://services...') #1 {main} thrown in <b>/in/3h5We</b> on line <b>4</b><br />
Process exited with code 255.
Output for 5.1.0 - 5.1.1
<br /> <b>Warning</b>: SoapClient::__construct() [<a href='function.--construct'>function.--construct</a>]: php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>/in/3h5We</b> on line <b>4</b><br /> <br /> <b>Warning</b>: SoapClient::__construct(http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl) [<a href='function.--construct'>function.--construct</a>]: failed to open stream: Connection refused in <b>/in/3h5We</b> on line <b>4</b><br /> <br /> <b>Warning</b>: SoapClient::__construct() [<a href='function.--construct'>function.--construct</a>]: I/O warning : failed to load external entity &quot;http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl&quot; in <b>/in/3h5We</b> on line <b>4</b><br /> <br /> <b>Fatal error</b>: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl' in /in/3h5We:4 Stack trace: #0 /in/3h5We(4): SoapClient->__construct('http://services...') #1 {main} thrown in <b>/in/3h5We</b> on line <b>4</b><br />
Process exited with code 255.
Output for 5.0.4 - 5.0.5
<br /> <b>Warning</b>: SoapClient::__construct() [<a href='function.--construct'>function.--construct</a>]: php_network_getaddresses: getaddrinfo failed: Name or service not known in <b>/in/3h5We</b> on line <b>4</b><br /> <br /> <b>Warning</b>: SoapClient::__construct(http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl) [<a href='function.--construct'>function.--construct</a>]: failed to open stream: Connection refused in <b>/in/3h5We</b> on line <b>4</b><br /> <br /> <b>Warning</b>: connection refusedI/O warning : failed to load external entity "http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl" in <b>/in/3h5We</b> on line <b>4</b><br /> <br /> <b>Fatal error</b>: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl' in /in/3h5We:4 Stack trace: #0 /in/3h5We(4): SoapClient->__construct('http://services...') #1 {main} thrown in <b>/in/3h5We</b> on line <b>4</b><br />
Process exited with code 255.
Output for 5.0.3
<br /> <b>Fatal error</b>: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl' in /in/3h5We:4 Stack trace: #0 /in/3h5We(4): SoapClient->__construct('http://services...') #1 {main} thrown in <b>/in/3h5We</b> on line <b>4</b><br />
Process exited with code 255.
Output for 5.0.0 - 5.0.2
<br /> <b>Fatal error</b>: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://services.xmethods.net/soap/urn:xmethods-delayed-quotes.wsdl' in /in/3h5We:4 Stack trace: #0 {main} thrown in <b>/in/3h5We</b> on line <b>4</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.9
<br /> <b>Fatal error</b>: Cannot instantiate non-existent class: soapclient in <b>/in/3h5We</b> on line <b>4</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Cannot instantiate non-existent class: soapclient in <b>/in/3h5We</b> on line <b>4</b><br />