3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set("soap.wsdl_cache_enabled", "0"); ini_set('default_socket_timeout', 600); try { $soap_option = array('trace' => true, 'connection_timeout' => 120, 'exceptions' => true, 'cache_wsdl' => WSDL_CACHE_NONE,); $requestParams = array('usuario' => 'reservasweb', 'pass' => 'Turis2015'); $client = new SoapClient('http://turismar.servidoresdelsur.uy:8081/PostDesa/ReservaServicio.svc?wsdl',$soap_option); $result = $client->DoLogin($requestParams); //, array('trace' => 1, 'soap_version' => SOAP_2_0, 'encoding'=> 'UTF-8') $sessionID = $result->DoLoginResult; //echo $sessionID; } catch (Exception $e) { var_dump($e); } header('Content-type: application/xml'); echo $client->__getLastResponse(); ?>
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.4, 8.3.6
Fatal error: Uncaught Error: Undefined constant "WSDL_CACHE_NONE" in /in/Xi306:5 Stack trace: #0 {main} thrown in /in/Xi306 on line 5
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Fatal error: Uncaught Error: Undefined constant "WSDL_CACHE_NONE" in /in/Xi306:5 Stack trace: #0 {main} thrown in /in/Xi306 on line 5
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: Use of undefined constant WSDL_CACHE_NONE - assumed 'WSDL_CACHE_NONE' (this will throw an Error in a future version of PHP) in /in/Xi306 on line 5 Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/Xi306:7 Stack trace: #0 {main} thrown in /in/Xi306 on line 7
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33
Notice: Use of undefined constant WSDL_CACHE_NONE - assumed 'WSDL_CACHE_NONE' in /in/Xi306 on line 5 Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/Xi306:7 Stack trace: #0 {main} thrown in /in/Xi306 on line 7
Process exited with code 255.
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28
Notice: Use of undefined constant WSDL_CACHE_NONE - assumed 'WSDL_CACHE_NONE' in /in/Xi306 on line 5 Fatal error: Class 'SoapClient' not found in /in/Xi306 on line 7
Process exited with code 255.

preferences:
221.18 ms | 402 KiB | 272 Q