3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = '<?xml version="1.0" encoding="utf-8"?><env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xml="http://www.w3.org/XML/1998/namespace" xmlns:simax="http://www.nout.fr/soap"> <env:Header xmlns="http://www.nout.fr/wsdl/SimaxService.wsdl/"> <ReturnType>MailServiceRecord</ReturnType> <ConnectedUser> <Form title="Utilisateur">1169</Form> <Element title="superviseur">2</Element> </ConnectedUser> <XSDSchema> <xs:schema VERSION="1" VERSION_LECTECRIT="1" VERSION_LECTURE="1" DATEHEURE="2017081714373498" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:simax="http://www.nout.fr/XMLSchema"> <xs:element xs:name="id_16510" simax:name="Message"> <xs:complexType> <xs:sequence> <xs:element xs:name="id_16061" simax:name="Id. Message" simax:typeElement="xs:unsignedLong" xs:use="required" simax:hidden="1"/> <xs:element xs:name="id_16083" simax:name="Spam" simax:typeElement="xs:boolean" simax:detail="1"/> <xs:element xs:name="id_16085" simax:name="Interne" simax:typeElement="xs:boolean" simax:detail="1"/> <xs:element xs:name="id_16084" simax:name="Email" simax:typeElement="xs:boolean" simax:detail="1"/> <xs:element xs:name="id_16082" simax:name="Email SIMAX" simax:typeElement="xs:boolean" simax:detail="1"/> <xs:element xs:name="id_16062" simax:name="Date" simax:typeElement="xs:dateTime" simax:printed="1" simax:sort="1"/> <xs:element xs:name="id_16079" simax:name="Expéditeur" simax:printed="1" simax:sort="1"> <xs:simpleType> <xs:restriction xs:base="xs:string"> <xs:maxLength xs:value="100"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element xs:name="id_16080" simax:name="Identifiant expéditeur" simax:typeElement="xs:unsignedLong" simax:hidden="1"/> <xs:element xs:name="id_15317" simax:name="Destinataires" simax:typeElement="xs:string" simax:printed="1"/> <xs:element xs:name="id_15318" simax:name="Identifiant destinataire" simax:hidden="1"> <xs:simpleType> <xs:restriction xs:base="xs:string"> <xs:maxLength xs:value="100"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element xs:name="id_15319" simax:name="Cc" simax:typeElement="xs:string" simax:detail="1" simax:printed="1"/> <xs:element xs:name="id_15320" simax:name="Identifiant Cc" simax:hidden="1"> <xs:simpleType> <xs:restriction xs:base="xs:string"> <xs:maxLength xs:value="100"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element xs:name="id_15321" simax:name="Cci" simax:typeElement="xs:string" simax:detail="1" simax:printed="1"/> <xs:element xs:name="id_15322" simax:name="Identifant Cci" simax:hidden="1"> <xs:simpleType> <xs:restriction xs:base="xs:string"> <xs:maxLength xs:value="100"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element xs:name="id_15316" simax:name="Sujet" simax:printed="1" simax:transform="firstUppercase"> <xs:simpleType> <xs:restriction xs:base="xs:string"> <xs:maxLength xs:value="100"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element xs:name="id_15324" simax:name="Contenu HTML" simax:typeElement="xs:string" simax:detail="1" simax:printed="1"/> <xs:element xs:name="id_15323" simax:name="Contenu Texte" simax:typeElement="xs:string" simax:detail="1" simax:printed="1"/> <xs:element xs:name="id_16068" simax:name="Pièce Jointe" simax:detail="1" simax:hidden="1"> <xs:simpleType> <xs:restriction xs:base="xs:string"> <xs:maxLength xs:value="100"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element xs:name="id_15325" simax:name="Identifiant pièce jointe" simax:hidden="1"> <xs:simpleType> <xs:restriction xs:base="xs:string"> <xs:maxLength xs:value="100"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element xs:name="id_16065" simax:name="Message lié" simax:typeElement="xs:unsignedLong" simax:detail="1" simax:hidden="1"/> <xs:element xs:name="id_15326" simax:name="Elément lié" simax:detail="1" simax:hidden="1"> <xs:simpleType> <xs:restriction xs:base="xs:string"> <xs:maxLength xs:value="100"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element xs:name="id_16077" simax:name="Mailing séparé" simax:typeElement="xs:boolean" simax:detail="1"/> <xs:element xs:name="id_16076" simax:name="Etat d&apos;envoi" simax:typeElement="simax-choice" simax:detail="1"> <xs:simpleType> <xs:restriction xs:base="xs:string"/> </xs:simpleType> </xs:element> <xs:element xs:name="id_16088" simax:name="Etat du transfert" simax:typeElement="simax-choice" simax:detail="1"> <xs:simpleType> <xs:restriction xs:base="xs:string"/> </xs:simpleType> </xs:element> <xs:element xs:name="id_16087" simax:name="Etat du message" simax:typeElement="simax-choice" simax:hidden="1"> <xs:simpleType> <xs:restriction xs:base="xs:string"> <xs:enumeration xs:value="Aucun" xs:id="16327"/> <xs:enumeration xs:value="Reçu" xs:id="16328"/> <xs:enumeration xs:value="Lu" xs:id="16329"/> <xs:enumeration xs:value="Traité" xs:id="16330"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element xs:name="id_16070" simax:name="Urgent / Important" simax:typeElement="simax-choice" simax:hidden="1"> <xs:simpleType> <xs:restriction xs:base="xs:string"> <xs:enumeration xs:value="Normal" xs:id="16324"/> <xs:enumeration xs:value="Haute" xs:id="16325"/> <xs:enumeration xs:value="Urgent" xs:id="16326"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element xs:name="id_16078" simax:name="Adresse de retour" simax:typeElement="simax-choice" simax:detail="1"> <xs:simpleType> <xs:restriction xs:base="xs:string"/> </xs:simpleType> </xs:element> <xs:element xs:name="id_15328" simax:name="Accusé de reception" simax:typeElement="simax-choice" simax:detail="1" simax:hidden="1"> <xs:simpleType> <xs:restriction xs:base="xs:string"> <xs:enumeration xs:value="Aucun" xs:id="16320"/> <xs:enumeration xs:value="Tous" xs:id="16321"/> <xs:enumeration xs:value="Utilisateurs" xs:id="16322"/> <xs:enumeration xs:value="Par Emails" xs:id="16323"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element xs:name="id_15329" simax:name="Confirmation de lecture" simax:typeElement="simax-choice" simax:detail="1" simax:hidden="1"> <xs:simpleType> <xs:restriction xs:base="xs:string"> <xs:enumeration xs:value="Aucun" xs:id="16320"/> <xs:enumeration xs:value="Tous" xs:id="16321"/> <xs:enumeration xs:value="Utilisateurs" xs:id="16322"/> <xs:enumeration xs:value="Par Emails" xs:id="16323"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element xs:name="id_15330" simax:name="Confirmation de validation" simax:typeElement="simax-choice" simax:detail="1" simax:hidden="1"> <xs:simpleType> <xs:restriction xs:base="xs:string"> <xs:enumeration xs:value="Aucun" xs:id="16320"/> <xs:enumeration xs:value="Utilisateurs" xs:id="16322"/> </xs:restriction> </xs:simpleType> </xs:element> <xs:element xs:name="id_16100" simax:name="Dossier" simax:typeElement="xs:unsignedLong" simax:hidden="1" simax:printed="1"/> </xs:sequence> </xs:complexType> </xs:element> <xs:unique xs:name="0"> <xs:selector xs:xpath="id_16510"/> <xs:field xs:xpath="id_16061"/> </xs:unique> </xs:schema> </XSDSchema> <PJSizeCheck>0</PJSizeCheck><RecipientCheck> <Recipient/> </RecipientCheck> </env:Header> <env:Body> <ModifyMessageResponse xmlns="http://www.nout.fr/wsdl/SimaxService.wsdl/"> <xml VERSION="1" VERSION_LECTECRIT="1" VERSION_LECTURE="1" DATEHEURE="2017081812153952" xmlns:simax="http://www.nout.fr/XML/" xmlns:simax-layout="http://www.nout.fr/XML/layout"> <id_16510 simax:id="39172675691202" simax:title="11:41:39 &gt; superviseur: multi data" simax:xsdLevel="0"> <id_16061>39172675691202</id_16061> <id_16083>17355</id_16083> <id_16085>1</id_16085> <id_16084>17382</id_16084> <id_16082>0</id_16082> <id_16062>20170818094139</id_16062> <id_16079>superviseur</id_16079> <id_16080>1169/2</id_16080> <id_15317>superviseur</id_15317> <id_15318>1169/2</id_15318> <id_15319/> <id_15320/> <id_15321/> <id_15322/> <id_15316>multi data</id_15316> <id_15324 simax:ref="1"/> <id_15323 simax:ref="2"/> <id_16068/> <id_15325/> <id_16065/> <id_15326/> <id_16077>0</id_16077> <id_16076>16332</id_16076> <id_16088>16338</id_16088> <id_16087>16328</id_16087> <id_16070>16324</id_16070> <id_16078/> <id_15328>16320</id_15328> <id_15329>16320</id_15329> <id_15330>16320</id_15330> <id_16100>1</id_16100> </id_16510> <simax:Data simax:ref="1" simax:encoding="quoted-printable" simax:size="3147" simax:typemime="text/plain">&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"&gt;=0A&lt;html&gt;&lt;head&gt;&lt;meta name=3D"qrichtext" content=3D"1" /&gt;&lt;style type=3D"text/css"&gt;=0Ap, li { white-space: pre-wrap; }=0A&lt;/style&gt;&lt;/head&gt;&lt;body style=3D"; font-size:8pt; font-weight:400; font-style:normal;"&gt;=0A&lt;p style=3D" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"&gt;&lt;span style=3D" background-color:#ffffff;"&gt;long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long sh&lt;/span&gt;&lt;span style=3D" font-weight:600; background-color:#ffffff;"&gt;ould be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should b&lt;/span&gt;&lt;span style=3D" background-color:#ffffff;"&gt;e in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data &lt;/span&gt;&amp;nbsp;&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</simax:Data> <simax:Data simax:ref="2" simax:encoding="quoted-printable" simax:size="2545" simax:typemime="text/plain"> long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long sh ould be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should b e in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data long should be in data =20</simax:Data></xml> </ModifyMessageResponse> </env:Body> </env:Envelope>'; $xml = simplexml_load_string($s); echo json_encode($xml->children('env', true)->Body);
based on hk8jc
Output for 5.6.0 - 5.6.30, hhvm-3.18.4 - 3.21.0, 7.0.0 - 7.3.0beta1
{}