3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo "start\n"; try { $test = new SoapClient ('http://www.example.com/',array('exceptions'=>true)); } catch (Exception $e) { echo "Caught exception\n"; } echo "end\n";
Output for 7.0.0 - 7.1.0
start Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/9IIb8:5 Stack trace: #0 {main} thrown in /in/9IIb8 on line 5
Process exited with code 255.
Output for 5.0.0 - 5.0.3, hhvm-3.10.0 - 3.12.0
start Caught exception end
Output for 5.4.0 - 5.6.21
start Fatal error: Class 'SoapClient' not found in /in/9IIb8 on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.29
start Caught exception end
Process exited with code 255.
Output for 5.2.6 - 5.2.17
start Warning: SoapClient::SoapClient(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/9IIb8 on line 5 Warning: SoapClient::SoapClient(http://www.example.com/): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/9IIb8 on line 5 Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "http://www.example.com/" in /in/9IIb8 on line 5 Caught exception end
Process exited with code 255.
Output for 5.2.3 - 5.2.5
start Warning: SoapClient::SoapClient(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/9IIb8 on line 5 Warning: SoapClient::SoapClient(http://www.example.com/): failed to open stream: Connection refused in /in/9IIb8 on line 5 Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "http://www.example.com/" in /in/9IIb8 on line 5 Caught exception end
Process exited with code 255.
Output for 5.2.0 - 5.2.2
start <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/9IIb8</b> on line <b>5</b><br /> <br /> <b>Warning</b>: SoapClient::SoapClient(http://www.example.com/) [<a href='function.SoapClient-SoapClient'>function.SoapClient-SoapClient</a>]: failed to open stream: Connection refused in <b>/in/9IIb8</b> on line <b>5</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://www.example.com/&quot; in <b>/in/9IIb8</b> on line <b>5</b><br /> Caught exception end
Process exited with code 255.
Output for 5.1.3 - 5.1.6
start <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/9IIb8</b> on line <b>5</b><br /> <br /> <b>Warning</b>: SoapClient::__construct(http://www.example.com/) [<a href='function.SoapClient---construct'>function.SoapClient---construct</a>]: failed to open stream: Connection refused in <b>/in/9IIb8</b> on line <b>5</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://www.example.com/&quot; in <b>/in/9IIb8</b> on line <b>5</b><br /> Caught exception end
Process exited with code 255.
Output for 5.1.0 - 5.1.2
start <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/9IIb8</b> on line <b>5</b><br /> <br /> <b>Warning</b>: SoapClient::__construct(http://www.example.com/) [<a href='function.--construct'>function.--construct</a>]: failed to open stream: Connection refused in <b>/in/9IIb8</b> on line <b>5</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://www.example.com/&quot; in <b>/in/9IIb8</b> on line <b>5</b><br /> Caught exception end
Process exited with code 255.
Output for 5.0.4 - 5.0.5
start <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/9IIb8</b> on line <b>5</b><br /> <br /> <b>Warning</b>: SoapClient::__construct(http://www.example.com/) [<a href='function.--construct'>function.--construct</a>]: failed to open stream: Connection refused in <b>/in/9IIb8</b> on line <b>5</b><br /> <br /> <b>Warning</b>: connection refusedI/O warning : failed to load external entity "http://www.example.com/" in <b>/in/9IIb8</b> on line <b>5</b><br /> Caught exception end
Process exited with code 255.
Output for 4.4.2 - 4.4.9
<br /> <b>Parse error</b>: syntax error, unexpected '{' in <b>/in/9IIb8</b> on line <b>4</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
<br /> <b>Parse error</b>: parse error, unexpected '{' in <b>/in/9IIb8</b> on line <b>4</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.3.4
<br /> <b>Parse error</b>: parse error in <b>/in/9IIb8</b> on line <b>4</b><br />
Process exited with code 255.