3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlstr = <<<XML <Property> <images> <image number="1"> <image>http://www.blah.net/shared/depot/3168/biens/149506/images/627783.jpg </image> <image number="2"> <image>http://www.blah.net/shared/depot/3168/biens/149506/images/627794.jpg</image> </image> <image number="3"> <image>http://www.blah.net/shared/depot/3168/biens/149506/images/627792.jpg </image> </images> </Property> XML; $xml = simplexml_load_string($xmlstr); //var_dump($xmlstr); foreach ($xml->images->image as $im) { // create an array $images with number as index and url as value var_dump ($im); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 13
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 13
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/nvZsJ
function name:  (null)
number of ops:  15
compiled vars:  !0 = $xmlstr, !1 = $xml, !2 = $im
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3CProperty%3E%0A++++%3Cimages%3E%0A++++++++%3Cimage+number%3D%221%22%3E%0A++++++++++++%3Cimage%3Ehttp%3A%2F%2Fwww.blah.net%2Fshared%2Fdepot%2F3168%2Fbiens%2F149506%2Fimages%2F627783.jpg%0A++++++++%3C%2Fimage%3E%0A++++++++%3Cimage+number%3D%222%22%3E+++%0A+++++++%3Cimage%3Ehttp%3A%2F%2Fwww.blah.net%2Fshared%2Fdepot%2F3168%2Fbiens%2F149506%2Fimages%2F627794.jpg%3C%2Fimage%3E%0A++++++++%3C%2Fimage%3E%0A++++++++%3Cimage+number%3D%223%22%3E%0A++++++++++++%3Cimage%3Ehttp%3A%2F%2Fwww.blah.net%2Fshared%2Fdepot%2F3168%2Fbiens%2F149506%2Fimages%2F627792.jpg%0A++++++++%3C%2Fimage%3E%0A++++%3C%2Fimages%3E%0A%3C%2FProperty%3E'
   18     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   22     5        FETCH_OBJ_R                                      ~6      !1, 'images'
          6        FETCH_OBJ_R                                      ~7      ~6, 'image'
          7      > FE_RESET_R                                       $8      ~7, ->13
          8    > > FE_FETCH_R                                               $8, !2, ->13
   25     9    >   INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
   22    12      > JMP                                                      ->8
         13    >   FE_FREE                                                  $8
   29    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.72 ms | 1395 KiB | 17 Q