3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $opts = array( 'ssl' => array('ciphers'=>'RC4-SHA', 'verify_peer'=>false, 'verify_peer_name'=>false) ); // SOAP 1.2 client $params = array ('encoding' => 'UTF-8', 'verifypeer' => false, 'verifyhost' => false, 'soap_version' => SOAP_1_2, 'trace' => 1, 'exceptions' => 1, "connection_timeout" => 180, 'stream_context' => stream_context_create($opts) ); $soap_client = new SoapClient('https://ws.seur.com/WSEcatalogoPublicos/servlet/XFireServlet/WSServiciosWebPublicos?wsdl', $params);
based on ZbkrM
Output for 7.2.0
Warning: Use of undefined constant SOAP_1_2 - assumed 'SOAP_1_2' (this will throw an Error in a future version of PHP) in /in/56HEi on line 6 Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/56HEi:8 Stack trace: #0 {main} thrown in /in/56HEi on line 8
Process exited with code 255.
Output for 7.0.0 - 7.1.10
Notice: Use of undefined constant SOAP_1_2 - assumed 'SOAP_1_2' in /in/56HEi on line 6 Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/56HEi:8 Stack trace: #0 {main} thrown in /in/56HEi on line 8
Process exited with code 255.
Output for 5.4.10 - 5.6.28
Notice: Use of undefined constant SOAP_1_2 - assumed 'SOAP_1_2' in /in/56HEi on line 6 Fatal error: Class 'SoapClient' not found in /in/56HEi on line 8
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'https://ws.seur.com/WSEcatalogoPublicos/servlet/XFireServlet/WSServiciosWebPublicos?wsdl' : failed to load external entity "https://ws.seur.com/WSEcatalogoPublicos/servlet/XFireServlet/WSServiciosWebPublicos?wsdl" in /in/56HEi:8 Stack trace: #0 /in/56HEi(8): SoapClient->SoapClient('https://ws.seur...', Array) #1 {main} thrown in /in/56HEi on line 8
Process exited with code 255.