3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php try { $t = new \SoapClient('10.99.0.14:1234/lpu.wsdl', array( 'connection_timeout' => 5, 'trace' => FALSE, 'exceptions' => TRUE )); throw new \Exception('yo'); } catch (\SoapFault $e) { print_r($e); throw new \Exception('yo'); } ?>
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/kpkrm:3 Stack trace: #0 {main} thrown in /in/kpkrm on line 3
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Fatal error: Class 'SoapClient' not found in /in/kpkrm on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.29
SoapFault Object ( [message:protected] => SOAP-ERROR: Parsing WSDL: Couldn't load from '10.99.0.14:1234/lpu.wsdl' : failed to load external entity "10.99.0.14:1234/lpu.wsdl" [string:Exception:private] => [code:protected] => 0 [file:protected] => /in/kpkrm [line:protected] => 7 [trace:Exception:private] => Array ( [0] => Array ( [file] => /in/kpkrm [line] => 7 [function] => SoapClient [class] => SoapClient [type] => -> [args] => Array ( [0] => 10.99.0.14:1234/lpu.wsdl [1] => Array ( [connection_timeout] => 5 [trace] => [exceptions] => 1 ) ) ) ) [previous:Exception:private] => [faultstring] => SOAP-ERROR: Parsing WSDL: Couldn't load from '10.99.0.14:1234/lpu.wsdl' : failed to load external entity "10.99.0.14:1234/lpu.wsdl" [faultcode] => WSDL ) Fatal error: Uncaught exception 'Exception' with message 'yo' in /in/kpkrm:11 Stack trace: #0 {main} thrown in /in/kpkrm on line 11
Process exited with code 255.
Output for 5.2.7 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 8 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 9 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 11 Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "10.99.0.14:1234/lpu.wsdl" in /in/kpkrm on line 7 SoapFault Object ( [message:protected] => SOAP-ERROR: Parsing WSDL: Couldn't load from '10.99.0.14:1234/lpu.wsdl' : failed to load external entity "10.99.0.14:1234/lpu.wsdl" [string:private] => [code:protected] => 0 [file:protected] => /in/kpkrm [line:protected] => 7 [trace:private] => Array ( [0] => Array ( [file] => /in/kpkrm [line] => 7 [function] => SoapClient [class] => SoapClient [type] => -> [args] => Array ( [0] => 10.99.0.14:1234/lpu.wsdl [1] => Array ( [connection_timeout] => 5 [trace] => [exceptions] => 1 ) ) ) ) [faultstring] => SOAP-ERROR: Parsing WSDL: Couldn't load from '10.99.0.14:1234/lpu.wsdl' : failed to load external entity "10.99.0.14:1234/lpu.wsdl" [faultcode] => WSDL ) Fatal error: Uncaught exception 'Exception' with message 'yo' in /in/kpkrm:11 Stack trace: #0 {main} thrown in /in/kpkrm on line 11
Process exited with code 255.
Output for 5.2.0 - 5.2.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 8 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 9 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 11 Warning: SoapClient::SoapClient(): I/O warning : failed to load external entity "10.99.0.14:1234/lpu.wsdl" in /in/kpkrm on line 7 SoapFault Object ( [message:protected] => SOAP-ERROR: Parsing WSDL: Couldn't load from '10.99.0.14:1234/lpu.wsdl' [string:private] => [code:protected] => 0 [file:protected] => /in/kpkrm [line:protected] => 7 [trace:private] => Array ( [0] => Array ( [file] => /in/kpkrm [line] => 7 [function] => SoapClient [class] => SoapClient [type] => -> [args] => Array ( [0] => 10.99.0.14:1234/lpu.wsdl [1] => Array ( [connection_timeout] => 5 [trace] => [exceptions] => 1 ) ) ) ) [faultstring] => SOAP-ERROR: Parsing WSDL: Couldn't load from '10.99.0.14:1234/lpu.wsdl' [faultcode] => WSDL ) Fatal error: Uncaught exception 'Exception' with message 'yo' in /in/kpkrm:11 Stack trace: #0 {main} thrown in /in/kpkrm on line 11
Process exited with code 255.
Output for 5.1.3 - 5.1.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 8 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 9 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 11 Warning: SoapClient::__construct(): I/O warning : failed to load external entity "10.99.0.14:1234/lpu.wsdl" in /in/kpkrm on line 7 SoapFault Object ( [message:protected] => SOAP-ERROR: Parsing WSDL: Couldn't load from '10.99.0.14:1234/lpu.wsdl' [string:private] => [code:protected] => 0 [file:protected] => /in/kpkrm [line:protected] => 7 [trace:private] => Array ( [0] => Array ( [file] => /in/kpkrm [line] => 7 [function] => __construct [class] => SoapClient [type] => -> [args] => Array ( [0] => 10.99.0.14:1234/lpu.wsdl [1] => Array ( [connection_timeout] => 5 [trace] => [exceptions] => 1 ) ) ) ) [faultstring] => SOAP-ERROR: Parsing WSDL: Couldn't load from '10.99.0.14:1234/lpu.wsdl' [faultcode] => WSDL ) Fatal error: Uncaught exception 'Exception' with message 'yo' in /in/kpkrm:11 Stack trace: #0 {main} thrown in /in/kpkrm on line 11
Process exited with code 255.
Output for 5.1.0 - 5.1.2
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 8 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 9 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 11 Warning: SoapClient::__construct(): I/O warning : failed to load external entity "10.99.0.14:1234/lpu.wsdl" in /in/kpkrm on line 7 SoapFault Object ( [message:protected] => [string:private] => [code:protected] => 0 [file:protected] => /in/kpkrm [line:protected] => 7 [trace:private] => Array ( [0] => Array ( [file] => /in/kpkrm [line] => 7 [function] => __construct [class] => SoapClient [type] => -> [args] => Array ( [0] => 10.99.0.14:1234/lpu.wsdl [1] => Array ( [connection_timeout] => 5 [trace] => [exceptions] => 1 ) ) ) ) [faultstring] => SOAP-ERROR: Parsing WSDL: Couldn't load from '10.99.0.14:1234/lpu.wsdl' [faultcode] => WSDL ) Fatal error: Uncaught exception 'Exception' with message 'yo' in /in/kpkrm:11 Stack trace: #0 {main} thrown in /in/kpkrm on line 11
Process exited with code 255.
Output for 5.0.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 8 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 9 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 11 Warning: I/O warning : failed to load external entity "10.99.0.14:1234/lpu.wsdl" in /in/kpkrm on line 7 SoapFault Object ( [message:protected] => [string:private] => [code:protected] => 0 [file:protected] => /in/kpkrm [line:protected] => 7 [trace:private] => Array ( [0] => Array ( [file] => /in/kpkrm [line] => 7 [function] => __construct [class] => SoapClient [type] => -> [args] => Array ( [0] => 10.99.0.14:1234/lpu.wsdl [1] => Array ( [connection_timeout] => 5 [trace] => [exceptions] => 1 ) ) ) ) [faultstring] => SOAP-ERROR: Parsing WSDL: Couldn't load from '10.99.0.14:1234/lpu.wsdl' [faultcode] => WSDL ) Fatal error: Uncaught exception 'Exception' with message 'yo' in /in/kpkrm:11 Stack trace: #0 {main} thrown in /in/kpkrm on line 11
Process exited with code 255.
Output for 5.0.4
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 8 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 9 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 11 Warning: I/O warning : failed to load external entity "10.99.0.14:1234/lpu.wsdl" in /in/kpkrm on line 7 SoapFault Object ( [message:protected] => [string:private] => [code:protected] => 0 [file:protected] => /in/kpkrm [line:protected] => 7 [trace:private] => Array ( [0] => Array ( [file] => /in/kpkrm [line] => 7 [function] => __construct [class] => SoapClient [type] => -> [args] => Array ( [0] => 10.99.0.14:1234/lpu.wsdl [1] => Array ( [connection_timeout] => 5 [trace] => [exceptions] => 1 ) ) ) ) [faultstring] => SOAP-ERROR: Parsing WSDL: Couldn't load from '10.99.0.14:1234/lpu.wsdl' [faultcode] => WSDL ) Fatal error: Uncaught exception 'Exception' with message 'yo' in /in/kpkrm:11 Stack trace: #0 /in/kpkrm(11): unknown() #1 {main} thrown in /in/kpkrm on line 11
Process exited with code 255.
Output for 5.0.3
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 8 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 9 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 11 SoapFault Object ( [message:protected] => [string:private] => [code:protected] => 0 [file:protected] => /in/kpkrm [line:protected] => 7 [trace:private] => Array ( [0] => Array ( [file] => /in/kpkrm [line] => 7 [function] => __construct [class] => SoapClient [type] => -> [args] => Array ( [0] => 10.99.0.14:1234/lpu.wsdl [1] => Array ( [connection_timeout] => 5 [trace] => [exceptions] => 1 ) ) ) ) [faultstring] => SOAP-ERROR: Parsing WSDL: Couldn't load from '10.99.0.14:1234/lpu.wsdl' [faultcode] => WSDL ) Fatal error: Uncaught exception 'Exception' with message 'yo' in /in/kpkrm:11 Stack trace: #0 /in/kpkrm(11): unknown() #1 {main} thrown in /in/kpkrm on line 11
Process exited with code 255.
Output for 5.0.0 - 5.0.2
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 8 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 9 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kpkrm on line 11 SoapFault Object ( [message:protected] => [string:private] => [code:protected] => 0 [file:protected] => /in/kpkrm [line:protected] => 7 [trace:private] => Array ( ) [faultstring] => SOAP-ERROR: Parsing WSDL: Couldn't load from '10.99.0.14:1234/lpu.wsdl' [faultcode] => WSDL ) Fatal error: Uncaught exception 'Exception' with message 'yo' in /in/kpkrm:11 Stack trace: #0 {main} thrown in /in/kpkrm on line 11
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected '{' in /in/kpkrm on line 2
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/kpkrm on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/kpkrm on line 2
Process exited with code 255.