3v4l.org

run code in 300+ PHP versions simultaneously
<?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 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/3h5We:4 Stack trace: #0 {main} thrown in /in/3h5We on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.12 - 7.3.33, 7.4.0 - 7.4.33
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.4.45, 5.5.0 - 5.5.35, 5.6.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.3.11, 4.4.0 - 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 />

preferences:
235.28 ms | 401 KiB | 346 Q