3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<Msg> <Txn>submitsms </Txn> <AccountID>123456789</AccountID> <Password>barfoo123</Password> <Message>test message</Message> <RateCode>1</RateCode> <Mobiles> <MobileNo>07123456701</MobileNo> </Mobiles> </Msg>"; $doc = new DOMDocument(); $doc->loadXML($xml); $xpath = new DOMXPath($doc); var_dump( $xpath->evaluate("string(//AccountID)"), $xpath->evaluate("string(//Password)"), $xpath->evaluate("string(//Message)") );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3diNA
function name:  (null)
number of ops:  26
compiled vars:  !0 = $xml, !1 = $doc, !2 = $xpath
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3CMsg%3E%0A%09%3CTxn%3Esubmitsms%0A%09%3C%2FTxn%3E%0A%09%3CAccountID%3E123456789%3C%2FAccountID%3E%0A%09%3CPassword%3Ebarfoo123%3C%2FPassword%3E%0A%09%3CMessage%3Etest+message%3C%2FMessage%3E%0A%09%3CRateCode%3E1%3C%2FRateCode%3E%0A%09%3CMobiles%3E%0A%09%09%3CMobileNo%3E07123456701%3C%2FMobileNo%3E%0A%09%3C%2FMobiles%3E%0A%3C%2FMsg%3E'
   15     1        NEW                                              $4      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $4
   16     4        INIT_METHOD_CALL                                         !1, 'loadXML'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
   18     7        NEW                                              $8      'DOMXPath'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !2, $8
   20    11        INIT_FCALL                                               'var_dump'
   21    12        INIT_METHOD_CALL                                         !2, 'evaluate'
         13        SEND_VAL_EX                                              'string%28%2F%2FAccountID%29'
         14        DO_FCALL                                      0  $11     
         15        SEND_VAR                                                 $11
   22    16        INIT_METHOD_CALL                                         !2, 'evaluate'
         17        SEND_VAL_EX                                              'string%28%2F%2FPassword%29'
         18        DO_FCALL                                      0  $12     
         19        SEND_VAR                                                 $12
   23    20        INIT_METHOD_CALL                                         !2, 'evaluate'
         21        SEND_VAL_EX                                              'string%28%2F%2FMessage%29'
         22        DO_FCALL                                      0  $13     
         23        SEND_VAR                                                 $13
         24        DO_ICALL                                                 
   24    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.76 ms | 1395 KiB | 15 Q