3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors', 1); error_reporting(E_ALL); /** Be sure you've both PEAR installed on your web server and that all the required PEAR modules have been installed */ if(!extension_loaded("soap")){ dl("php_soap.dll"); } ini_set("consultar.wsdl_cache_enabled","0"); $server = new SoapServer("consultar.wsdl"); function consultar(){ //aqui vamos a llamar a mysql /* $servername = "localhost"; $username = "dragonfly"; $password = "jorangamo_15"; // Create connection $conn = new mysqli($servername, $username, $password); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } echo "Connected successfully";*/ return "hola"; } $server->AddFunction("consultar"); $server->handle(); echo "si"; ?>
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Warning: dl(): Dynamically loaded extensions aren't enabled in /in/CuhDb on line 11 Fatal error: Uncaught Error: Class "SoapServer" not found in /in/CuhDb:15 Stack trace: #0 {main} thrown in /in/CuhDb on line 15
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 Warning: dl(): Dynamically loaded extensions aren't enabled in /in/CuhDb on line 11 Fatal error: Uncaught Error: Class "SoapServer" not found in /in/CuhDb:15 Stack trace: #0 {main} thrown in /in/CuhDb on line 15
Process exited with code 255.
Output for 8.0.13
Warning: dl(): Unable to load dynamic library 'php_soap.dll' (tried: /usr/lib/php/8.0.13/modules/php_soap.dll (/usr/lib/php/8.0.13/modules/php_soap.dll: cannot open shared object file: No such file or directory), /usr/lib/php/8.0.13/modules/php_soap.dll.so (/usr/lib/php/8.0.13/modules/php_soap.dll.so: cannot open shared object file: No such file or directory)) in /in/CuhDb on line 11 Fatal error: Uncaught Error: Class "SoapServer" not found in /in/CuhDb:15 Stack trace: #0 {main} thrown in /in/CuhDb on line 15
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.33
Warning: dl(): Dynamically loaded extensions aren't enabled in /in/CuhDb on line 11 Fatal error: Uncaught Error: Class 'SoapServer' not found in /in/CuhDb:15 Stack trace: #0 {main} thrown in /in/CuhDb on line 15
Process exited with code 255.
Output for 7.3.33
Warning: dl(): Unable to load dynamic library 'php_soap.dll' (tried: /usr/lib/php/7.3.33/modules/php_soap.dll (/usr/lib/php/7.3.33/modules/php_soap.dll: cannot open shared object file: No such file or directory), /usr/lib/php/7.3.33/modules/php_soap.dll.so (/usr/lib/php/7.3.33/modules/php_soap.dll.so: cannot open shared object file: No such file or directory)) in /in/CuhDb on line 11 Fatal error: Uncaught Error: Class 'SoapServer' not found in /in/CuhDb:15 Stack trace: #0 {main} thrown in /in/CuhDb on line 15
Process exited with code 255.
Output for 7.3.32
Warning: dl(): Unable to load dynamic library 'php_soap.dll' (tried: /usr/lib/php/7.3.32/modules/php_soap.dll (/usr/lib/php/7.3.32/modules/php_soap.dll: cannot open shared object file: No such file or directory), /usr/lib/php/7.3.32/modules/php_soap.dll.so (/usr/lib/php/7.3.32/modules/php_soap.dll.so: cannot open shared object file: No such file or directory)) in /in/CuhDb on line 11 Fatal error: Uncaught Error: Class 'SoapServer' not found in /in/CuhDb:15 Stack trace: #0 {main} thrown in /in/CuhDb on line 15
Process exited with code 255.
Output for 5.4.1 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.28
Warning: dl(): Dynamically loaded extensions aren't enabled in /in/CuhDb on line 11 Fatal error: Class 'SoapServer' not found in /in/CuhDb on line 15
Process exited with code 255.

preferences:
200.62 ms | 402 KiB | 227 Q