3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = ' <services> <AlternateNumbers name="Alternate Numbers"> <distinctiveRing>true</distinctiveRing> <alternateNumberEntry id="1"> <TNModify> <tnManagementCase>2</tnManagementCase> <phoneNumber>5006007014</phoneNumber> </TNModify> <extension>7014</extension> <ringPattern>Short-Short-Long</ringPattern> </alternateNumberEntry> </AlternateNumbers> <Authentication name="Authentication"> <username>4313131313</username> <password>Secret#123</password> </Authentication> <ThirdPartyVoiceMailSupport name="Third-Party Voice Mail Support"> <isActive>true</isActive> <busyRedirectToVoiceMail>true</busyRedirectToVoiceMail> <noAnswerRedirectToVoiceMail>true</noAnswerRedirectToVoiceMail> <alwaysRedirectToVoiceMail>false</alwaysRedirectToVoiceMail> <serverSelection>User Specific Mail Server</serverSelection> <userServer>2541236524</userServer> <mailboxIdType>URL</mailboxIdType> <mailboxURL>user2256@example.com</mailboxURL> <noAnswerNumberOfRings>5</noAnswerNumberOfRings> <outOfPrimaryZoneRedirectToVoiceMail>true</outOfPrimaryZoneRedirectToVoiceMail> </ThirdPartyVoiceMailSupport> </services> '; $xml = simplexml_load_string( $xml); foreach( $xml->xpath( './/child') as $child) { echo $child->attributes()['name'] . "\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/CAqSu
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, '%0A++++++++%3Cservices%3E%0A++++++++++++%3CAlternateNumbers+name%3D%22Alternate+Numbers%22%3E%0A++++++++++++++++%3CdistinctiveRing%3Etrue%3C%2FdistinctiveRing%3E%0A++++++++++++++++%3CalternateNumberEntry+id%3D%221%22%3E%0A++++++++++++++++++++%3CTNModify%3E%0A++++++++++++++++++++++++%3CtnManagementCase%3E2%3C%2FtnManagementCase%3E%0A++++++++++++++++++++++++%3CphoneNumber%3E5006007014%3C%2FphoneNumber%3E%0A++++++++++++++++++++%3C%2FTNModify%3E%0A++++++++++++++++++++%3Cextension%3E7014%3C%2Fextension%3E%0A++++++++++++++++++++%3CringPattern%3EShort-Short-Long%3C%2FringPattern%3E%0A++++++++++++++++%3C%2FalternateNumberEntry%3E%0A++++++++++++%3C%2FAlternateNumbers%3E%0A++++++++++++%3CAuthentication+name%3D%22Authentication%22%3E%0A++++++++++++++++%3Cusername%3E4313131313%3C%2Fusername%3E%0A++++++++++++++++%3Cpassword%3ESecret%23123%3C%2Fpassword%3E%0A++++++++++++%3C%2FAuthentication%3E%0A++++++++++++%3CThirdPartyVoiceMailSupport+name%3D%22Third-Party+Voice+Mail+Support%22%3E%0A++++++++++++++++%3CisActive%3Etrue%3C%2FisActive%3E%0A++++++++++++++++%3CbusyRedirectToVoiceMail%3Etrue%3C%2FbusyRedirectToVoiceMail%3E%0A++++++++++++++++%3CnoAnswerRedirectToVoiceMail%3Etrue%3C%2FnoAnswerRedirectToVoiceMail%3E%0A++++++++++++++++%3CalwaysRedirectToVoiceMail%3Efalse%3C%2FalwaysRedirectToVoiceMail%3E%0A++++++++++++++++%3CserverSelection%3EUser+Specific+Mail+Server%3C%2FserverSelection%3E%0A++++++++++++++++%3CuserServer%3E2541236524%3C%2FuserServer%3E%0A++++++++++++++++%3CmailboxIdType%3EURL%3C%2FmailboxIdType%3E%0A++++++++++++++++%3CmailboxURL%3Euser2256%40example.com%3C%2FmailboxURL%3E%0A++++++++++++++++%3CnoAnswerNumberOfRings%3E5%3C%2FnoAnswerNumberOfRings%3E%0A++++++++++++++++%3CoutOfPrimaryZoneRedirectToVoiceMail%3Etrue%3C%2FoutOfPrimaryZoneRedirectToVoiceMail%3E%0A++++++++++++%3C%2FThirdPartyVoiceMailSupport%3E%0A++++++++%3C%2Fservices%3E%0A++++'
   34     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
   36     5        INIT_METHOD_CALL                                         !0, 'xpath'
          6        SEND_VAL_EX                                              '.%2F%2Fchild'
          7        DO_FCALL                                      0  $5      
          8      > FE_RESET_R                                       $6      $5, ->16
          9    > > FE_FETCH_R                                               $6, !1, ->16
   37    10    >   INIT_METHOD_CALL                                         !1, 'attributes'
         11        DO_FCALL                                      0  $7      
         12        FETCH_DIM_R                                      ~8      $7, 'name'
         13        CONCAT                                           ~9      ~8, '%0A'
         14        ECHO                                                     ~9
   36    15      > JMP                                                      ->9
         16    >   FE_FREE                                                  $6
   38    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.72 ms | 1392 KiB | 15 Q