3v4l.org

run code in 300+ PHP versions simultaneously
<?php $feed = '<properties xmlns:xs="http://www.w3.org/2001/XMLSchema"> <property> <reference>####</reference> <images> <image url="https://#####.#########.###/imgV1/QGcM5YXB7ITu20usXVas9zwwpfszaQl0S7VJWTlCweLw8h1OJgGrQ8SrQZiKyUwAW5EgBoJga_JUxtL~PunupG3r34QY7hcc7wMtgouw9c1H6DUbVNANjxM_Zg--.jpg">A2970_10776141.jpg</image> <image url="https://#####.#########.###/imgV1/QGcM5YXB7ITu20usXVas9zwwpfszaQl0S7VJWTlCweLw8h1OJgGrQ8SrQZiKyUwAW5EgBoJga_AwVzHs_Ajc3bPh6tAooCEbZkq_ZYbRT5eAjUXsq3Znh_f~Vw--.jpg">A2970_10776142.jpg</image> </images> </property> </properties>'; $properties = simplexml_load_string($feed); foreach ($properties as $property) { foreach ($property->images->image as $image) { echo $image['url'] . PHP_EOL; echo $image->attributes()['url'] . PHP_EOL; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 22
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 22
Branch analysis from position: 7
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 20
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 20
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 20
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/j9Rt6
function name:  (null)
number of ops:  24
compiled vars:  !0 = $feed, !1 = $properties, !2 = $property, !3 = $image
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cproperties+xmlns%3Axs%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22%3E%0A++++%3Cproperty%3E%0A++++++++%3Creference%3E%23%23%23%23%3C%2Freference%3E%0A++++++++%3Cimages%3E%0A++++++++++++%3Cimage+url%3D%22https%3A%2F%2F%23%23%23%23%23.%23%23%23%23%23%23%23%23%23.%23%23%23%2FimgV1%2FQGcM5YXB7ITu20usXVas9zwwpfszaQl0S7VJWTlCweLw8h1OJgGrQ8SrQZiKyUwAW5EgBoJga_JUxtL%7EPunupG3r34QY7hcc7wMtgouw9c1H6DUbVNANjxM_Zg--.jpg%22%3EA2970_10776141.jpg%3C%2Fimage%3E%0A++++++++++++%3Cimage+url%3D%22https%3A%2F%2F%23%23%23%23%23.%23%23%23%23%23%23%23%23%23.%23%23%23%2FimgV1%2FQGcM5YXB7ITu20usXVas9zwwpfszaQl0S7VJWTlCweLw8h1OJgGrQ8SrQZiKyUwAW5EgBoJga_AwVzHs_Ajc3bPh6tAooCEbZkq_ZYbRT5eAjUXsq3Znh_f%7EVw--.jpg%22%3EA2970_10776142.jpg%3C%2Fimage%3E%0A++++++++%3C%2Fimages%3E%0A++++%3C%2Fproperty%3E%0A%3C%2Fproperties%3E'
   11     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
   12     5      > FE_RESET_R                                       $7      !1, ->22
          6    > > FE_FETCH_R                                               $7, !2, ->22
   13     7    >   FETCH_OBJ_R                                      ~8      !2, 'images'
          8        FETCH_OBJ_R                                      ~9      ~8, 'image'
          9      > FE_RESET_R                                       $10     ~9, ->20
         10    > > FE_FETCH_R                                               $10, !3, ->20
   14    11    >   FETCH_DIM_R                                      ~11     !3, 'url'
         12        CONCAT                                           ~12     ~11, '%0A'
         13        ECHO                                                     ~12
   15    14        INIT_METHOD_CALL                                         !3, 'attributes'
         15        DO_FCALL                                      0  $13     
         16        FETCH_DIM_R                                      ~14     $13, 'url'
         17        CONCAT                                           ~15     ~14, '%0A'
         18        ECHO                                                     ~15
   13    19      > JMP                                                      ->10
         20    >   FE_FREE                                                  $10
   12    21      > JMP                                                      ->6
         22    >   FE_FREE                                                  $7
   17    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.03 ms | 1001 KiB | 14 Q