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 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
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.
Output for 8.0.13
Warning: file_put_contents(wsdl.xml): Failed to open stream: Read-only file system 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.
Output for 7.3.32 - 7.3.33, 7.4.26, 7.4.33
Warning: file_put_contents(wsdl.xml): failed to open stream: Read-only file system 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.
Output for 7.1.25 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.25, 7.4.27 - 7.4.32
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.
Output for 7.1.20
Warning: file_put_contents(): open_basedir restriction in effect. File(wsdl.xml) is not within the allowed path(s): (/tmp:/in) 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.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.10
Warning: file_put_contents(wsdl.xml): failed to open stream: Permission denied 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.
Output for 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28
Warning: file_put_contents(wsdl.xml): failed to open stream: Permission denied in /in/J4vIb on line 3 Fatal error: Class 'SoapServer' not found in /in/J4vIb on line 5
Process exited with code 255.
Output for 5.2.7 - 5.2.17, 5.3.0 - 5.3.29
Warning: file_put_contents(wsdl.xml): failed to open stream: Permission denied in /in/J4vIb on line 3 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>WSDL</faultcode><faultstring>SOAP-ERROR: Parsing WSDL: Couldn't load from 'wsdl.xml' : failed to load external entity "wsdl.xml" </faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
Process exited with code 255.
Output for 5.2.4 - 5.2.6
Warning: file_put_contents(wsdl.xml): failed to open stream: Permission denied in /in/J4vIb on line 3 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>WSDL</faultcode><faultstring>SOAP-ERROR: Parsing WSDL: Couldn't load from 'wsdl.xml'</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
Process exited with code 255.
Output for 5.2.3
Warning: file_put_contents(wsdl.xml): failed to open stream: Permission denied in /in/J4vIb on line 3 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>WSDL</faultcode><faultstring>SOAP-ERROR: Parsing WSDL: Couldn't load from '/wsdl.xml'</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
Process exited with code 255.
Output for 5.2.1 - 5.2.2
Warning: file_put_contents(wsdl.xml): failed to open stream: Read-only file system in /in/J4vIb on line 3 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>WSDL</faultcode><faultstring>SOAP-ERROR: Parsing WSDL: Couldn't load from '/in/wsdl.xml'</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
Process exited with code 255.
Output for 5.0.4 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0
Warning: file_put_contents(wsdl.xml): failed to open stream: Read-only file system in /in/J4vIb on line 3 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>WSDL</faultcode><faultstring>SOAP-ERROR: Parsing WSDL: Couldn't load from 'wsdl.xml'</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Warning: file_put_contents(wsdl.xml): failed to open stream: Read-only file system in /in/J4vIb on line 3 <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>WSDL</faultcode><faultstring>SOAP-ERROR: Parsing WSDL: Couldn't load from 'wsdl.xml'</faultstring></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: file_put_contents() in /in/J4vIb on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: file_put_contents() in /in/J4vIb on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: file_put_contents() in /in/J4vIb on line 3

preferences:
289.98 ms | 401 KiB | 358 Q