3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Warning: require_once(): open_basedir restriction in effect. File(lib/nusoap.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/4mOkC on line 3 Warning: require_once(lib/nusoap.php): Failed to open stream: Operation not permitted in /in/4mOkC on line 3 Fatal error: Uncaught Error: Failed opening required 'lib/nusoap.php' (include_path='.:') in /in/4mOkC:3 Stack trace: #0 {main} thrown in /in/4mOkC on line 3
Process exited with code 255.
Output for 8.0.13
Warning: require_once(lib/nusoap.php): Failed to open stream: No such file or directory in /in/4mOkC on line 3 Fatal error: Uncaught Error: Failed opening required 'lib/nusoap.php' (include_path='.:') in /in/4mOkC:3 Stack trace: #0 {main} thrown in /in/4mOkC on line 3
Process exited with code 255.
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0, 7.3.32 - 7.3.33, 7.4.33
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 7.2.29 - 7.2.33, 7.3.12 - 7.3.31, 7.4.0 - 7.4.32
Warning: require_once(): open_basedir restriction in effect. File(lib/nusoap.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/4mOkC on line 3 Warning: require_once(lib/nusoap.php): failed to open stream: Operation not permitted 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 7.1.20, 7.2.6
Warning: require_once(): open_basedir restriction in effect. File(lib/nusoap.php) is not within the allowed path(s): (/tmp:/in) in /in/4mOkC on line 3 Warning: require_once(lib/nusoap.php): failed to open stream: Operation not permitted 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 4.3.2 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 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

preferences:
245.59 ms | 401 KiB | 352 Q