3v4l.org

run code in 300+ PHP versions simultaneously
<?php file_put_contents('wsdl.xml', '<?xml version="1.0"?><definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:tns="http://desenv.webservice/webservice.php" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap-enc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" name="Imobiliaria_Manager" targetNamespace="http://desenv.webservice/webservice.php"><types><xsd:schema targetNamespace="http://desenv.webservice/webservice.php"><xsd:complexType name="ArrayOfImobiliaria_Imovel"><xsd:complexContent><xsd:restriction base="soap-enc:Array"><xsd:attribute ref="soap-enc:arrayType" wsdl:arrayType="tns:Imobiliaria_Imovel[]"/></xsd:restriction></xsd:complexContent></xsd:complexType><xsd:complexType name="Imobiliaria_Imovel"><xsd:all><xsd:element name="id" type="xsd:int" nillable="true"/><xsd:element name="tipo" type="xsd:string" nillable="true"/><xsd:element name="modalidade" type="xsd:string" nillable="true"/><xsd:element name="cidade" type="xsd:string" nillable="true"/><xsd:element name="bairro" type="xsd:string" nillable="true"/><xsd:element name="logradouro" type="xsd:string" nillable="true"/><xsd:element name="numero" type="xsd:int" nillable="true"/><xsd:element name="complemento" type="xsd:string" nillable="true"/><xsd:element name="quantidadeQuartos" type="xsd:int" nillable="true"/><xsd:element name="quantidadeBanheiros" type="xsd:int" nillable="true"/><xsd:element name="quantidadeGaragem" type="xsd:int" nillable="true"/><xsd:element name="possuiAreaDeServico" type="xsd:int" nillable="true"/><xsd:element name="preco" type="xsd:double" nillable="true"/><xsd:element name="exibirPreco" type="xsd:int" nillable="true"/><xsd:element name="observacoes" type="xsd:string" nillable="true"/><xsd:element name="dataAtualizacao" type="xsd:string" nillable="true"/><xsd:element name="referencia" type="xsd:string" nillable="true"/></xsd:all></xsd:complexType><xsd:complexType name="Imobiliaria_Imoveis"><xsd:all><xsd:element name="imoveis" type="tns:ArrayOfImobiliaria_Imovel" nillable="true"/></xsd:all></xsd:complexType><xsd:complexType name="ArrayOfImobiliaria_Imagem"><xsd:complexContent><xsd:restriction base="soap-enc:Array"><xsd:attribute ref="soap-enc:arrayType" wsdl:arrayType="tns:Imobiliaria_Imagem[]"/></xsd:restriction></xsd:complexContent></xsd:complexType><xsd:complexType name="Imobiliaria_Imagem"><xsd:all><xsd:element name="url" type="xsd:string" nillable="true"/><xsd:element name="nome" type="xsd:string" nillable="true"/><xsd:element name="destaque" type="xsd:int" nillable="true"/></xsd:all></xsd:complexType><xsd:complexType name="Imobiliaria_Imagens"><xsd:all><xsd:element name="imagens" type="tns:ArrayOfImobiliaria_Imagem" nillable="true"/></xsd:all></xsd:complexType><xsd:complexType name="ArrayOfImobiliaria_FotoInstitucional"><xsd:complexContent><xsd:restriction base="soap-enc:Array"><xsd:attribute ref="soap-enc:arrayType" wsdl:arrayType="tns:Imobiliaria_FotoInstitucional[]"/></xsd:restriction></xsd:complexContent></xsd:complexType><xsd:complexType name="Imobiliaria_FotoInstitucional"><xsd:all><xsd:element name="id" type="xsd:int" nillable="true"/><xsd:element name="nome" type="xsd:string" nillable="true"/><xsd:element name="urlFoto" type="xsd:string" nillable="true"/></xsd:all></xsd:complexType><xsd:complexType name="Imobiliaria_FotosInstitucionais"><xsd:all><xsd:element name="fotosinstitucionais" type="tns:ArrayOfImobiliaria_FotoInstitucional" nillable="true"/></xsd:all></xsd:complexType></xsd:schema></types><portType name="Imobiliaria_ManagerPort"><operation name="getImoveis"><documentation>@return Imobiliaria_Imoveis</documentation><input message="tns:getImoveisIn"/><output message="tns:getImoveisOut"/></operation><operation name="getImagens"><documentation>@param int $idImovel</documentation><input message="tns:getImagensIn"/><output message="tns:getImagensOut"/></operation><operation name="getTextoInstitucional"><documentation>@return String</documentation><input message="tns:getTextoInstitucionalIn"/><output message="tns:getTextoInstitucionalOut"/></operation><operation name="getFotosInstitucionais"><documentation>@return Imobiliaria_FotosInstitucionais</documentation><input message="tns:getFotosInstitucionaisIn"/><output message="tns:getFotosInstitucionaisOut"/></operation></portType><binding name="Imobiliaria_ManagerBinding" type="tns:Imobiliaria_ManagerPort"><soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/><operation name="getImoveis"><soap:operation soapAction="http://desenv.webservice/webservice.php#getImoveis"/><input><soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://desenv.webservice/webservice.php"/></input><output><soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://desenv.webservice/webservice.php"/></output></operation><operation name="getImagens"><soap:operation soapAction="http://desenv.webservice/webservice.php#getImagens"/><input><soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://desenv.webservice/webservice.php"/></input><output><soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://desenv.webservice/webservice.php"/></output></operation><operation name="getTextoInstitucional"><soap:operation soapAction="http://desenv.webservice/webservice.php#getTextoInstitucional"/><input><soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://desenv.webservice/webservice.php"/></input><output><soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://desenv.webservice/webservice.php"/></output></operation><operation name="getFotosInstitucionais"><soap:operation soapAction="http://desenv.webservice/webservice.php#getFotosInstitucionais"/><input><soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://desenv.webservice/webservice.php"/></input><output><soap:body use="encoded" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" namespace="http://desenv.webservice/webservice.php"/></output></operation></binding><service name="Imobiliaria_ManagerService"><port name="Imobiliaria_ManagerPort" binding="tns:Imobiliaria_ManagerBinding"><soap:address location="http://desenv.webservice/webservice.php"/></port></service><message name="getImoveisIn"/><message name="getImoveisOut"><part name="return" type="tns:Imobiliaria_Imoveis"/></message><message name="getImagensIn"><part name="idImovel" type="xsd:int"/></message><message name="getImagensOut"><part name="return" type="tns:Imobiliaria_Imagens"/></message><message name="getTextoInstitucionalIn"/><message name="getTextoInstitucionalOut"><part name="return" type="xsd:string"/></message><message name="getFotosInstitucionaisIn"/><message name="getFotosInstitucionaisOut"><part name="return" type="tns:Imobiliaria_FotosInstitucionais"/></message></definitions>'); $server = new SoapServer('wsdl.xml', array('soap_version' => SOAP_1_2)); call_user_func_array(array($server, 'setClass'), array('Imobiliaria_Manager')); $server->handle();
Output for git.master, git.master_jit, rfc.property-hooks
Warning: file_put_contents(): open_basedir restriction in effect. File(wsdl.xml) is not within the allowed path(s): (/tmp:/in:/etc) in /in/J4vIb on line 3 Warning: file_put_contents(wsdl.xml): Failed to open stream: Operation not permitted in /in/J4vIb on line 3 Fatal error: Uncaught Error: Class "SoapServer" not found in /in/J4vIb:5 Stack trace: #0 {main} thrown in /in/J4vIb on line 5
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:
39.56 ms | 402 KiB | 8 Q