3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SoapService { const WSDL_URL = 'https://soap.cap.co.uk/Vehicles/CapVehicles.asmx?WSDL'; private $client; function __construct() { $this->client = new SoapClient(self::WSDL_URL, array("trace" => 1, "exception" => 0)); } function getMakes() { $header = NULL; $result = $this->client->__soapCall("GetCapMan", array( "GetCapMan" => array( "subscriberId" => 'xxxx', "password" => "xxxx", "database" => "car", "justCurrentManufacturers" => true, "bodyStyleFilter" => '' ) ), NULL, $header); return $result; } } $client = new SoapService(); $makes = $client->getMakes(); var_dump($makes);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "SoapClient" not found in /in/uCLZE:11 Stack trace: #0 /in/uCLZE(32): SoapService->__construct() #1 {main} thrown in /in/uCLZE on line 11
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:
72.07 ms | 401 KiB | 8 Q