3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <ListarDetalhamentosResponse xmlns="http://tempuri.org/"> <ListarDetalhamentosResult> <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="ListarDetalhamentos"> <xs:complexType> <xs:sequence> <xs:element name="CodDetalhe" type="xs:int" minOccurs="0" /> <xs:element name="Detalhe" type="xs:string" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> </xs:choice> </xs:complexType> </xs:element> </xs:schema> <diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1"> <NewDataSet xmlns=""> <ListarDetalhamentos diffgr:id="ListarDetalhamentos1" msdata:rowOrder="0"> <CodDetalhe>1800</CodDetalhe> <Detalhe>MAL FUNCIONAMIENTO</Detalhe> </ListarDetalhamentos> <ListarDetalhamentos diffgr:id="ListarDetalhamentos2" msdata:rowOrder="1"> <CodDetalhe>1801</CodDetalhe> <Detalhe>INFORMACION ERRADA</Detalhe> </ListarDetalhamentos> <ListarDetalhamentos diffgr:id="ListarDetalhamentos3" msdata:rowOrder="2"> <CodDetalhe>1802</CodDetalhe> <Detalhe>FALTA DE INFORMACIÓN</Detalhe> </ListarDetalhamentos> </NewDataSet> </diffgr:diffgram> </ListarDetalhamentosResult> </ListarDetalhamentosResponse> </soap:Body> </soap:Envelope> XML; print_r(simplexml_load_string($xml));
Output for 5.4.0 - 5.4.39
Parse error: syntax error, unexpected '<<' (T_SL) in /in/UUUS1 on line 2
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_SL in /in/UUUS1 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_SL in /in/UUUS1 on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/UUUS1 on line 2
Process exited with code 255.

preferences:
249.03 ms | 1395 KiB | 129 Q