3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <DataSet> <xs:schema id="OutDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xs:element name="OutDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true"> <xs:complexType> <xs:choice minOccurs="0" maxOccurs="unbounded"> <xs:element name="BuscaSMS"> <xs:complexType> <xs:sequence> <xs:element name="seunum" type="xs:string" minOccurs="0" /> <xs:element name="celular" type="xs:string" minOccurs="0" /> <xs:element name="mensagem" type="xs:string" minOccurs="0" /> <xs:element name="status" type="xs:string" minOccurs="0" /> <xs:element name="datarec" type="xs:dateTime" minOccurs="0" /> <xs:element name="dataenv" type="xs:dateTime" minOccurs="0" /> <xs:element name="datastatus" type="xs:dateTime" minOccurs="0" /> <xs:element name="op" type="xs:short" 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"> <OutDataSet xmlns=""> <BuscaSMS diffgr:id="BuscaSMS0" msdata:rowOrder="3"> <seunum>999999999</seunum> <celular>9999999999</celular> <mensagem>obrigado</mensagem> <status>MO</status> <datarec>2018-02-01T13:30:51.547-02:00</datarec> <dataenv>2018-02-01T13:30:52.773-02:00</dataenv> <datastatus>2018-02-01T13:30:52.773-02:00</datastatus> <op>5</op> </BuscaSMS> <BuscaSMS diffgr:id="BuscaSMS1" msdata:rowOrder="4"> <seunum>99999999999</seunum> <celular>9999999999</celular> <mensagem>Obrigado.</mensagem> <status>MO</status> <datarec>2018-02-01T13:37:17.18-02:00</datarec> <dataenv>2018-02-01T13:37:20.807-02:00</dataenv> <datastatus>2018-02-01T13:37:20.807-02:00</datastatus> <op>5</op> </BuscaSMS> </OutDataSet> </diffgr:diffgram> </DataSet> XML; $simpleXml = simplexml_load_string($xml); var_dump($simpleXml->xpath('//BuscaSMS'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aDdu6
function name:  (null)
number of ops:  12
compiled vars:  !0 = $xml, !1 = $simpleXml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3CDataSet%3E%0A++%3Cxs%3Aschema+id%3D%22OutDataSet%22+xmlns%3D%22%22+xmlns%3Axs%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22+xmlns%3Amsdata%3D%22urn%3Aschemas-microsoft-com%3Axml-msdata%22%3E%0A++++%3Cxs%3Aelement+name%3D%22OutDataSet%22+msdata%3AIsDataSet%3D%22true%22+msdata%3AUseCurrentLocale%3D%22true%22%3E%0A++++++%3Cxs%3AcomplexType%3E%0A++++++++%3Cxs%3Achoice+minOccurs%3D%220%22+maxOccurs%3D%22unbounded%22%3E%0A++++++++++%3Cxs%3Aelement+name%3D%22BuscaSMS%22%3E%0A++++++++++++%3Cxs%3AcomplexType%3E%0A++++++++++++++%3Cxs%3Asequence%3E%0A++++++++++++++++%3Cxs%3Aelement+name%3D%22seunum%22+type%3D%22xs%3Astring%22+minOccurs%3D%220%22+%2F%3E%0A++++++++++++++++%3Cxs%3Aelement+name%3D%22celular%22+type%3D%22xs%3Astring%22+minOccurs%3D%220%22+%2F%3E%0A++++++++++++++++%3Cxs%3Aelement+name%3D%22mensagem%22+type%3D%22xs%3Astring%22+minOccurs%3D%220%22+%2F%3E%0A++++++++++++++++%3Cxs%3Aelement+name%3D%22status%22+type%3D%22xs%3Astring%22+minOccurs%3D%220%22+%2F%3E%0A++++++++++++++++%3Cxs%3Aelement+name%3D%22datarec%22+type%3D%22xs%3AdateTime%22+minOccurs%3D%220%22+%2F%3E%0A++++++++++++++++%3Cxs%3Aelement+name%3D%22dataenv%22+type%3D%22xs%3AdateTime%22+minOccurs%3D%220%22+%2F%3E%0A++++++++++++++++%3Cxs%3Aelement+name%3D%22datastatus%22+type%3D%22xs%3AdateTime%22+minOccurs%3D%220%22+%2F%3E%0A++++++++++++++++%3Cxs%3Aelement+name%3D%22op%22+type%3D%22xs%3Ashort%22+minOccurs%3D%220%22+%2F%3E%0A++++++++++++++%3C%2Fxs%3Asequence%3E%0A++++++++++++%3C%2Fxs%3AcomplexType%3E%0A++++++++++%3C%2Fxs%3Aelement%3E%0A++++++++%3C%2Fxs%3Achoice%3E%0A++++++%3C%2Fxs%3AcomplexType%3E%0A++++%3C%2Fxs%3Aelement%3E%0A++%3C%2Fxs%3Aschema%3E%0A++%3Cdiffgr%3Adiffgram+xmlns%3Amsdata%3D%22urn%3Aschemas-microsoft-com%3Axml-msdata%22+xmlns%3Adiffgr%3D%22urn%3Aschemas-microsoft-com%3Axml-diffgram-v1%22%3E%0A++++%3COutDataSet+xmlns%3D%22%22%3E%0A++++++%3CBuscaSMS+diffgr%3Aid%3D%22BuscaSMS0%22+msdata%3ArowOrder%3D%223%22%3E%0A++++++++%3Cseunum%3E999999999%3C%2Fseunum%3E%0A++++++++%3Ccelular%3E9999999999%3C%2Fcelular%3E%0A++++++++%3Cmensagem%3Eobrigado%3C%2Fmensagem%3E%0A++++++++%3Cstatus%3EMO%3C%2Fstatus%3E%0A++++++++%3Cdatarec%3E2018-02-01T13%3A30%3A51.547-02%3A00%3C%2Fdatarec%3E%0A++++++++%3Cdataenv%3E2018-02-01T13%3A30%3A52.773-02%3A00%3C%2Fdataenv%3E%0A++++++++%3Cdatastatus%3E2018-02-01T13%3A30%3A52.773-02%3A00%3C%2Fdatastatus%3E%0A++++++++%3Cop%3E5%3C%2Fop%3E%0A++++++%3C%2FBuscaSMS%3E%0A++++++%3CBuscaSMS+diffgr%3Aid%3D%22BuscaSMS1%22+msdata%3ArowOrder%3D%224%22%3E%0A++++++++%3Cseunum%3E99999999999%3C%2Fseunum%3E%0A++++++++%3Ccelular%3E9999999999%3C%2Fcelular%3E%0A++++++++%3Cmensagem%3EObrigado.%3C%2Fmensagem%3E%0A++++++++%3Cstatus%3EMO%3C%2Fstatus%3E%0A++++++++%3Cdatarec%3E2018-02-01T13%3A37%3A17.18-02%3A00%3C%2Fdatarec%3E%0A++++++++%3Cdataenv%3E2018-02-01T13%3A37%3A20.807-02%3A00%3C%2Fdataenv%3E%0A++++++++%3Cdatastatus%3E2018-02-01T13%3A37%3A20.807-02%3A00%3C%2Fdatastatus%3E%0A++++++++%3Cop%3E5%3C%2Fop%3E%0A++++++%3C%2FBuscaSMS%3E%0A++++%3C%2FOutDataSet%3E%0A++%3C%2Fdiffgr%3Adiffgram%3E%0A%3C%2FDataSet%3E'
   54     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   55     5        INIT_FCALL                                               'var_dump'
          6        INIT_METHOD_CALL                                         !1, 'xpath'
          7        SEND_VAL_EX                                              '%2F%2FBuscaSMS'
          8        DO_FCALL                                      0  $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.93 ms | 1465 KiB | 15 Q