3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml=simplexml_load_string(<<<XML <Server> <Host>74.208.165.122</Host> <Port>21</Port> <Protocol>0</Protocol> <Type>0</Type> <Logontype>1</Logontype> <User>u52405838</User> <Pass>ebrandz1</Pass> <TimezoneOffset>0</TimezoneOffset> <PasvMode>MODE_DEFAULT</PasvMode> <MaximumMultipleConnections>0</MaximumMultipleConnections> <EncodingType>Auto</EncodingType> <Comments></Comments> <LocalDir></LocalDir> <RemoteDir></RemoteDir>Zukara.com </Server> </Servers> XML ); foreach($xml->xpath('//product[starts-with(Host/text(),"Shirt")]') as $product) { echo $product->Host; echo "\n"; echo $product->User; echo "\n"; echo $product->Pass; echo "\n<br>"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 19
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 19
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/NJCPS
function name:  (null)
number of ops:  21
compiled vars:  !0 = $xml, !1 = $product
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'simplexml_load_string'
    3     1        SEND_VAL                                                 '%3CServer%3E%0A++++++++++++%3CHost%3E74.208.165.122%3C%2FHost%3E%0A++++++++++++%3CPort%3E21%3C%2FPort%3E%0A++++++++++++%3CProtocol%3E0%3C%2FProtocol%3E%0A++++++++++++%3CType%3E0%3C%2FType%3E%0A++++++++++++%3CLogontype%3E1%3C%2FLogontype%3E%0A++++++++++++%3CUser%3Eu52405838%3C%2FUser%3E%0A++++++++++++%3CPass%3Eebrandz1%3C%2FPass%3E%0A++++++++++++%3CTimezoneOffset%3E0%3C%2FTimezoneOffset%3E%0A++++++++++++%3CPasvMode%3EMODE_DEFAULT%3C%2FPasvMode%3E%0A++++++++++++%3CMaximumMultipleConnections%3E0%3C%2FMaximumMultipleConnections%3E%0A++++++++++++%3CEncodingType%3EAuto%3C%2FEncodingType%3E%0A++++++++++++%3CComments%3E%3C%2FComments%3E%0A++++++++++++%3CLocalDir%3E%3C%2FLocalDir%3E%0A++++++++++++%3CRemoteDir%3E%3C%2FRemoteDir%3EZukara.com%0A++++++++%3C%2FServer%3E%0A++++%3C%2FServers%3E'
          2        DO_ICALL                                         $2      
    2     3        ASSIGN                                                   !0, $2
   22     4        INIT_METHOD_CALL                                         !0, 'xpath'
          5        SEND_VAL_EX                                              '%2F%2Fproduct%5Bstarts-with%28Host%2Ftext%28%29%2C%22Shirt%22%29%5D'
          6        DO_FCALL                                      0  $4      
          7      > FE_RESET_R                                       $5      $4, ->19
          8    > > FE_FETCH_R                                               $5, !1, ->19
   24     9    >   FETCH_OBJ_R                                      ~6      !1, 'Host'
         10        ECHO                                                     ~6
   25    11        ECHO                                                     '%0A'
   26    12        FETCH_OBJ_R                                      ~7      !1, 'User'
         13        ECHO                                                     ~7
   27    14        ECHO                                                     '%0A'
   28    15        FETCH_OBJ_R                                      ~8      !1, 'Pass'
         16        ECHO                                                     ~8
   29    17        ECHO                                                     '%0A%3Cbr%3E'
   22    18      > JMP                                                      ->8
         19    >   FE_FREE                                                  $5
   30    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.01 ms | 1396 KiB | 15 Q