3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oFile = simplexml_load_string('<?xml version="1.0" encoding="utf-8"?> <Report> <index><value>h</value></index> <index><value>e</value></index> <index><value>l</value></index> <index><value>l</value></index> <index><value>o</value></index> </Report>'); foreach ($oFile->xpath('*/value') as $key => $value) { echo $key, ': ', $value, "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/gi1S2
function name:  (null)
number of ops:  17
compiled vars:  !0 = $oFile, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'simplexml_load_string'
          1        SEND_VAL                                                 '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22utf-8%22%3F%3E%0A%3CReport%3E%0A++++%3Cindex%3E%3Cvalue%3Eh%3C%2Fvalue%3E%3C%2Findex%3E%0A++++%3Cindex%3E%3Cvalue%3Ee%3C%2Fvalue%3E%3C%2Findex%3E%0A++++%3Cindex%3E%3Cvalue%3El%3C%2Fvalue%3E%3C%2Findex%3E%0A++++%3Cindex%3E%3Cvalue%3El%3C%2Fvalue%3E%3C%2Findex%3E%0A++++%3Cindex%3E%3Cvalue%3Eo%3C%2Fvalue%3E%3C%2Findex%3E%0A%3C%2FReport%3E'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
   12     4        INIT_METHOD_CALL                                         !0, 'xpath'
          5        SEND_VAL_EX                                              '%2A%2Fvalue'
          6        DO_FCALL                                      0  $5      
          7      > FE_RESET_R                                       $6      $5, ->15
          8    > > FE_FETCH_R                                       ~7      $6, !1, ->15
          9    >   ASSIGN                                                   !2, ~7
   13    10        ECHO                                                     !2
         11        ECHO                                                     '%3A+'
         12        ECHO                                                     !1
         13        ECHO                                                     '%0A'
   12    14      > JMP                                                      ->8
         15    >   FE_FREE                                                  $6
   14    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.43 ms | 1010 KiB | 14 Q