3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Pull in the NuSOAP code require_once('lib/nusoap.php'); $username="pmportail01"; $password="zse4rfv!"; // Create the client instance $client = new nusoap_client('http://dev.paramaitre.com:8081/Services/PortailService.svc', 'wsdl'); $err = $client->getError(); if ($err) { echo '<h2>Constructor error</h2><pre>' . $err . '</pre>'; echo '<h2>Debug</h2><pre>' . htmlspecialchars($client->getDebug(), ENT_QUOTES) . '</pre>'; exit(); } $parameter=array('operation'=>'LireClient',"usager" =>$username, "motDePasse" => $password, "pmPortailId" => "D1073E3F-4F84-4993-9566-60E52934ABFB" ,"EnveloppeRequete"=>array("Operation"=>"LireClient",'Params'=>array("Client"=>array('Id'=>"","NumeroClient"=>2), "RequeteId" => ""))); $client->soap_defencoding = 'UTF-8'; $result = $client->call('Requete',$parameter); if ($client->fault) { echo '<h2>Fault</h2><pre>'; print_r($result); echo '</pre>'; } else { // Check for errors $err = $client->getError(); if ($err) { // Display the error echo '<h2>Error</h2><pre>' . $err . '</pre>'; } else { // Display the result echo '<h2>Result</h2><pre>'; print_r($result); echo '</pre>'; } } echo '<h2>Request</h2>'; echo '<pre>' . htmlspecialchars($client->request, ENT_QUOTES) . '</pre>'; echo '<h2>Response</h2>'; echo '<pre>' . htmlspecialchars($client->response, ENT_QUOTES) . '</pre>'; ?>
Output for 5.1.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: require_once(lib/nusoap.php): failed to open stream: No such file or directory in /in/4mOkC on line 3 Fatal error: require_once(): Failed opening required 'lib/nusoap.php' (include_path='.:') in /in/4mOkC on line 3
Process exited with code 255.
Output for hhvm-3.12.0
Fatal error: Uncaught Error: File not found: lib/nusoap.php in /in/4mOkC:3 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.10.0
Fatal error: File not found: lib/nusoap.php in /in/4mOkC on line -1
Process exited with code 255.
Output for 4.3.2 - 5.0.5
Warning: main(lib/nusoap.php): failed to open stream: No such file or directory in /in/4mOkC on line 3 Fatal error: main(): Failed opening required 'lib/nusoap.php' (include_path='.:') in /in/4mOkC on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: main(lib/nusoap.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/4mOkC on line 3 Fatal error: main() [http://www.php.net/function.main]: Failed opening required 'lib/nusoap.php' (include_path='.:') in /in/4mOkC on line 3