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 git.master, git.master_jit, rfc.property-hooks
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.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
65.82 ms | 401 KiB | 8 Q