3v4l.org

run code in 300+ PHP versions simultaneously
<?php class EconomicsWS { const WSDL = array(); static function WSDL() { return array(); } } $opts = array( 'http' => array( 'header' => "X-EconomicAppIdentifier: RevirusDKInvoicing/1.0 (http://revi-rus.dk/; administrator@revi-rus.dk) PHP-SOAP/1.0\r\n" ) ); $context = stream_context_create($opts); $this->client = new SoapClient(EconomicsWS::WSDL, array("trace" => 1, "exceptions" => 1, 'stream_context' => $context));

preferences:
48.1 ms | 402 KiB | 5 Q