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; $dom = new \DOMDocument(); $dom->loadXML($xml); foreach($dom->getElementsByTagName('BuscaSMS') as $buscaSMS) { var_dump($buscaSMS); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 16
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/1ltTC
function name:  (null)
number of ops:  18
compiled vars:  !0 = $xml, !1 = $dom, !2 = $buscaSMS
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        NEW                                              $4      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $4
   55     4        INIT_METHOD_CALL                                         !1, 'loadXML'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
   56     7        INIT_METHOD_CALL                                         !1, 'getElementsByTagName'
          8        SEND_VAL_EX                                              'BuscaSMS'
          9        DO_FCALL                                      0  $8      
         10      > FE_RESET_R                                       $9      $8, ->16
         11    > > FE_FETCH_R                                               $9, !2, ->16
   58    12    >   INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
   56    15      > JMP                                                      ->11
         16    >   FE_FREE                                                  $9
   59    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.43 ms | 1450 KiB | 14 Q