3v4l.org

run code in 300+ PHP versions simultaneously
<?php $client = new SoapClient( 'https://api.trafficvance.com/?v3=system.wsdl', array('soap_version' => '1.2', 'connect_timeout' => 10, 'compression' => (SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_GZIP), 'cache_wdsl' => WSDL_CACHE_NONE)); $header = new SoapHeader( 'https://api.trafficvance.com/?v3=system.wsdl', 'AuthenticateRequest', new SoapVar(array('apiKey' => '285a017d576037958085d0feb8fbb23d247d285a'), SOAP_ENC_OBJECT), true); $client->__setSoapHeaders($header); try { echo("\n[SOAP response]\n"); $serverTime = $client->__soapCall('getServerTime', array()); echo("\n{$serverTime->dateTime}\n"); } catch (Exception $e) { echo($e->getMessage()); } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "SoapClient" not found in /in/NllCv:2 Stack trace: #0 {main} thrown in /in/NllCv on line 2
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
53.58 ms | 401 KiB | 8 Q