3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $options = array( 'location' => 'http://example.com/something', 'uri' => 'http://example.com/something', 'trace' => true ); $client = new SoapClient(null, $options); var_dump($client); var_dump($client->trace);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/PCGdd:8 Stack trace: #0 {main} thrown in /in/PCGdd on line 8
Process exited with code 255.
Output for hhvm-3.12.0
object(SoapClient)#1 (0) { } Notice: Undefined property: SoapClient::$trace in /in/PCGdd on line 10 NULL
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.34 - 5.6.28
Fatal error: Class 'SoapClient' not found in /in/PCGdd on line 8
Process exited with code 255.
Output for 5.0.4 - 5.4.32
object(SoapClient)#1 (4) { ["uri"]=> string(28) "http://example.com/something" ["location"]=> string(28) "http://example.com/something" ["trace"]=> int(1) ["_soap_version"]=> int(1) } int(1)
Output for 5.0.0 - 5.0.3
object(SoapClient)#1 (4) { ["location"]=> string(28) "http://example.com/something" ["uri"]=> string(28) "http://example.com/something" ["trace"]=> int(1) ["_soap_version"]=> int(1) } int(1)
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: soapclient in /in/PCGdd on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: soapclient in /in/PCGdd on line 8