3v4l.org

run code in 300+ PHP versions simultaneously
<?php $datexURL = "https://datex.trafikverket.se/D2ClientPull/SituationPullServerBA/2_3/Accident?wsdl"; $username = "datex"; $password = "datex2009"; $soapOptions = array('login' => $username, 'password' => $password, 'exceptions' => "true", 'trace' => "true", 'compression' => SOAP_COMPRESSION_ACCEPT | SOAP_COMPRESSION_DEFLATE | 5 ); $client = new SoapClient($datexURL, $soapOptions); $result = $client->getDatex2Data(); print_r($result); ?>

preferences:
61.64 ms | 402 KiB | 5 Q