3v4l.org

run code in 300+ PHP versions simultaneously
<?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', $opts );
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: Undefined constant "SOAP_1_2" in /in/EorZW:6 Stack trace: #0 {main} thrown in /in/EorZW on line 6
Process exited with code 255.
Output for 7.2.5 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
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/EorZW on line 6 Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/EorZW:8 Stack trace: #0 {main} thrown in /in/EorZW on line 8
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33
Notice: Use of undefined constant SOAP_1_2 - assumed 'SOAP_1_2' in /in/EorZW on line 6 Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/EorZW:8 Stack trace: #0 {main} thrown in /in/EorZW on line 8
Process exited with code 255.
Output for 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
Notice: Use of undefined constant SOAP_1_2 - assumed 'SOAP_1_2' in /in/EorZW on line 6 Fatal error: Class 'SoapClient' not found in /in/EorZW on line 8
Process exited with code 255.

preferences:
205.39 ms | 402 KiB | 212 Q