3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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); ?>
based on Bqu1L
Output for 7.1.0 - 7.2.0
Warning: A non-numeric value encountered in /in/rP30U on line 9 Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/rP30U:11 Stack trace: #0 {main} thrown in /in/rP30U on line 11
Process exited with code 255.
Output for 7.0.0 - 7.0.20
Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/rP30U:11 Stack trace: #0 {main} thrown in /in/rP30U on line 11
Process exited with code 255.
Output for 5.4.2 - 5.6.28
Fatal error: Class 'SoapClient' not found in /in/rP30U on line 11
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://datex.trafikverket.se/D2ClientPull/SituationPullServerBA/2_3/Accident?wsdl' : failed to load external entity "https://datex.trafikverket.se/D2ClientPull/SituationPullServerBA/2_3/Accident?wsdl" in /in/rP30U:11 Stack trace: #0 /in/rP30U(11): SoapClient->SoapClient('https://datex.t...', Array) #1 {main} thrown in /in/rP30U on line 11
Process exited with code 255.