3v4l.org

run code in 300+ PHP versions simultaneously
<?php $client = new SoapClient("https://www.scottnichol.com/samples/hellowsdl2.php?wsdl&debug=0",array( "trace"=>1, "exceptions"=>0) ); //libxml_clear_errors(); //libxml_use_internal_errors(true); //$req->firstname="Scott"; //$req->age="50"; //$req->gender="M"; //$parameters->person = $req; $obj = $client->hello(array('firstname'=>"Scott",'age'=>"50",'gender'=>"M")); //$xml = simplexml_load_string($client->__getLastResponse()); $xml = simplexml_load_string($client->__getLastRequest()); //$xml = new SimplexmlElement($client->__getLastResponse(), TRUE); $json= json_encode($xml); //$json= json_encode($client->__getLastResponse()); print "<pre>\n"; print "<br />\n Request : ".htmlspecialchars($client->__getLastRequest()); print "<br />\n Response: ".htmlspecialchars($client->__getLastResponse()); print "<br />\n xml: ".$xml; print "<br />\n JSON: ".$json; print "</pre>"; /*if (!$xml) { $errors = libxml_get_errors(); foreach ($errors as $error) { echo display_xml_error($error, $xml); } }*/ var_dump($xml); echo "<BR>"; var_dump ($json); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "SoapClient" not found in /in/5SMl1:2 Stack trace: #0 {main} thrown in /in/5SMl1 on line 2
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:
35.01 ms | 401 KiB | 8 Q