3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $params = array("CadastrarPaciente" => array( 'login' => "userMSD", 'password' => "5283d763551364arkg5495ms4f316a4a2f64b5078344256322", 'cpf' => "77857347396", 'nome' => "Edmir Soares teste Hernani", 'dtNasc' => "01/01/2000", 'tipoEndereco' => '1', 'endereco' => "Rua Padre Joao Manuel,755", 'complemento' => "cj 22", 'bairro' => "Jardins", 'cidade' => "Sao Paulo", 'uf' => "SP", 'cep' => "01411000", 'telefone' => "1132547788", 'telCelular' => "11955564215", 'telComercial' => "", 'sexo' => "M", 'email' => "teste@tete.com", 'autorizaContato' => "S", 'medicamentos' => " &lt;medicamentos&gt; &lt;medicamento crm='20231' ufcrm='SP' codlinha='4' tipocrm='1' /&gt; &lt;/medicamentos&gt; ", 'origem' => "8", 'codigoPrograma' => "6" ) ); $option = array('location' => 'http://177.47.22.163:9000/wsAcessoFloat/MSD.svc?wsdl'); $option = array('location' => 'http://177.47.22.163:9000/wsAcessoFloat/MSD.svc?wsdl'); $soap_client = new SoapClient('http://177.47.22.163:9000/wsAcessoFloat/MSD.svc?wsdl'); $resultPaciente = $soap_client->__soapCall( "CadastrarPaciente", $params, $option); $medico = $resultPaciente->CadastrarPacienteResult; print $medico->Status;
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'SoapClient' not found in /in/12XeR:35 Stack trace: #0 {main} thrown in /in/12XeR on line 35
Process exited with code 255.
Output for 5.4.10 - 5.6.28
Fatal error: Class 'SoapClient' not found in /in/12XeR on line 35
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Fatal error: Uncaught SoapFault exception: [WSDL] SOAP-ERROR: Parsing WSDL: Couldn't load from 'http://177.47.22.163:9000/wsAcessoFloat/MSD.svc?wsdl' : failed to load external entity "http://177.47.22.163:9000/wsAcessoFloat/MSD.svc?wsdl" in /in/12XeR:35 Stack trace: #0 /in/12XeR(35): SoapClient->SoapClient('http://177.47.2...') #1 {main} thrown in /in/12XeR on line 35
Process exited with code 255.