3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str=<<<XML <Applications> <Application Name="IE"> <Configuration Environment="Google" Location="C:/Program Files/Internet Explorer/iexplore.exe" Arguments="www.google.com" /> <Configuration Environment="News" Location="C:/Program Files/Internet Explorer/iexplore.exe" Arguments="http://www.canberratimes.com.au" /> <Configuration Environment="Home" Location="C:/Program Files/Internet Explorer/iexplore.exe" Arguments="" Default="TRUE" /> </Application> </Applications> XML; $xml=simplexml_load_string($str); foreach($xml->xpath('/Applications/Application[@Name="IE"]/Conguration[@Environment="Google"][@Location]') as $t) { echo $t; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/ItNLv
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str, !1 = $xml, !2 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3CApplications%3E%0A++%3CApplication+Name%3D%22IE%22%3E%0A++++%3CConfiguration+Environment%3D%22Google%22+Location%3D%22C%3A%2FProgram+Files%2FInternet+Explorer%2Fiexplore.exe%22+Arguments%3D%22www.google.com%22+%2F%3E%0A++++%3CConfiguration+Environment%3D%22News%22+Location%3D%22C%3A%2FProgram+Files%2FInternet+Explorer%2Fiexplore.exe%22+Arguments%3D%22http%3A%2F%2Fwww.canberratimes.com.au%22+%2F%3E++++%0A++++%3CConfiguration+Environment%3D%22Home%22+Location%3D%22C%3A%2FProgram+Files%2FInternet+Explorer%2Fiexplore.exe%22+Arguments%3D%22%22+Default%3D%22TRUE%22+%2F%3E++%0A++%3C%2FApplication%3E%0A%3C%2FApplications%3E'
   11     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   12     5        INIT_METHOD_CALL                                         !1, 'xpath'
          6        SEND_VAL_EX                                              '%2FApplications%2FApplication%5B%40Name%3D%22IE%22%5D%2FConguration%5B%40Environment%3D%22Google%22%5D%5B%40Location%5D'
          7        DO_FCALL                                      0  $6      
          8      > FE_RESET_R                                       $7      $6, ->12
          9    > > FE_FETCH_R                                               $7, !2, ->12
   14    10    >   ECHO                                                     !2
   12    11      > JMP                                                      ->9
         12    >   FE_FREE                                                  $7
   15    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.81 ms | 1400 KiB | 15 Q