3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"> <s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <InvokeServiceResponse xmlns="http://www.avanicimcon.com/XMLSchema"> <DXResponse TimeStamp="03/13/2014" Target="Test" Version="1.0"> <Success/> <UserInfo> <UserName> ttdxlu </UserName> </UserInfo> <ServiceDetails> <Providers> <Provider> ActlLookup </Provider> </Providers> <ServiceName> RetrieveHotelLocations </ServiceName> </ServiceDetails> <ResponseData> <Providers xmlns=""> <Provider Name="ActlLookup"> <RetrieveHotelLocationsRS xmlns="http://www.avanicimcon.com/XSD"> <CodeCategories> <CodeCategory ID="LCL" Name="LocationCodeList"> <Code ID="AU32" Value="Top End Northern Territory, Australia - Location" CountryID="AU" Type="Location"/> <Code ID="AU7" Value="Top End, Australia - Location" CountryID="AU" Type="Location"/> </CodeCategory> </CodeCategories> </RetrieveHotelLocationsRS> </Provider> </Providers> </ResponseData> </DXResponse> </InvokeServiceResponse> </s:Body> </s:Envelope>'; $xml = simplexml_load_string( $xml); foreach( $xml->xpath( './/InvokeServiceResponse') as $child) { echo $child->attributes()['xmlns'] . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/SvlM8
function name:  (null)
number of ops:  18
compiled vars:  !0 = $xml, !1 = $child
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cs%3AEnvelope+xmlns%3As%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F%22%3E%0A%09%3Cs%3ABody+xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22+xmlns%3Axsd%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22%3E%0A%09%09%3CInvokeServiceResponse+xmlns%3D%22http%3A%2F%2Fwww.avanicimcon.com%2FXMLSchema%22%3E%0A%09%09%09%3CDXResponse+TimeStamp%3D%2203%2F13%2F2014%22+Target%3D%22Test%22+Version%3D%221.0%22%3E%0A%09%09%09%09%3CSuccess%2F%3E%0A%09%09%09%09%3CUserInfo%3E%0A%09%09%09%09%09%3CUserName%3E%0A%09%09%09%09%09%09ttdxlu%0A%09%09%09%09%09%3C%2FUserName%3E%0A%09%09%09%09%3C%2FUserInfo%3E%0A%09%09%09%09%3CServiceDetails%3E%0A%09%09%09%09%09%3CProviders%3E%0A%09%09%09%09%09%09%3CProvider%3E%0A%09%09%09%09%09%09%09ActlLookup%0A%09%09%09%09%09%09%3C%2FProvider%3E%0A%09%09%09%09%09%3C%2FProviders%3E%0A%09%09%09%09%09%3CServiceName%3E%0A%09%09%09%09%09%09RetrieveHotelLocations%0A%09%09%09%09%09%3C%2FServiceName%3E%0A%09%09%09%09%3C%2FServiceDetails%3E%0A%09%09%09%09%3CResponseData%3E%0A%09%09%09%09%09%3CProviders+xmlns%3D%22%22%3E%0A%09%09%09%09%09%09%3CProvider+Name%3D%22ActlLookup%22%3E%0A%09%09%09%09%09%09%09%3CRetrieveHotelLocationsRS+xmlns%3D%22http%3A%2F%2Fwww.avanicimcon.com%2FXSD%22%3E%0A%09%09%09%09%09%09%09%09%3CCodeCategories%3E%0A%09%09%09%09%09%09%09%09%09%3CCodeCategory+ID%3D%22LCL%22+Name%3D%22LocationCodeList%22%3E%0A%09%09%09%09%09%09%09%09%09%09%3CCode+ID%3D%22AU32%22+Value%3D%22Top+End+Northern+Territory%2C+Australia+-+Location%22+CountryID%3D%22AU%22+Type%3D%22Location%22%2F%3E%0A%09%09%09%09%09%09%09%09%09%09%3CCode+ID%3D%22AU7%22+Value%3D%22Top+End%2C+Australia+-+Location%22+CountryID%3D%22AU%22+Type%3D%22Location%22%2F%3E%0A%09%09%09%09%09%09%09%09%09%3C%2FCodeCategory%3E%0A%09%09%09%09%09%09%09%09%3C%2FCodeCategories%3E%0A%09%09%09%09%09%09%09%3C%2FRetrieveHotelLocationsRS%3E%0A%09%09%09%09%09%09%3C%2FProvider%3E%0A%09%09%09%09%09%3C%2FProviders%3E%0A%09%09%09%09%3C%2FResponseData%3E%0A%09%09%09%3C%2FDXResponse%3E%0A%09%09%3C%2FInvokeServiceResponse%3E%0A%09%3C%2Fs%3ABody%3E%0A%3C%2Fs%3AEnvelope%3E'
   41     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
   43     5        INIT_METHOD_CALL                                         !0, 'xpath'
          6        SEND_VAL_EX                                              '.%2F%2FInvokeServiceResponse'
          7        DO_FCALL                                      0  $5      
          8      > FE_RESET_R                                       $6      $5, ->16
          9    > > FE_FETCH_R                                               $6, !1, ->16
   44    10    >   INIT_METHOD_CALL                                         !1, 'attributes'
         11        DO_FCALL                                      0  $7      
         12        FETCH_DIM_R                                      ~8      $7, 'xmlns'
         13        CONCAT                                           ~9      ~8, '%0A'
         14        ECHO                                                     ~9
   43    15      > JMP                                                      ->9
         16    >   FE_FREE                                                  $6
   45    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.24 ms | 1392 KiB | 15 Q