3v4l.org

run code in 300+ PHP versions simultaneously
<?php $contentData = '<texts><text_0_1><![CDATA[Conteúdo de texto aleatório. 16:41. <BR>14/11/2013]]></text_0_1></texts><medias><image_0_0><![CDATA[http://teste.croobly.com.br/module-content/images/1476978532.jpg]]></image_0_0></medias>'; $croobly_data = simplexml_load_string("<content>".$contentData."</content>"); $croobly_data = $croobly_data->xpath('medias'); foreach($croobly_data->children() as $media=>$image) { echo $image; } //print_r($croobly_data);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 18
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/FY66s
function name:  (null)
number of ops:  20
compiled vars:  !0 = $contentData, !1 = $croobly_data, !2 = $image, !3 = $media
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Ctexts%3E%3Ctext_0_1%3E%3C%21%5BCDATA%5BConte%C3%BAdo+de+texto+aleat%C3%B3rio.+16%3A41.+%3CBR%3E14%2F11%2F2013%5D%5D%3E%3C%2Ftext_0_1%3E%3C%2Ftexts%3E%3Cmedias%3E%3Cimage_0_0%3E%3C%21%5BCDATA%5Bhttp%3A%2F%2Fteste.croobly.com.br%2Fmodule-content%2Fimages%2F1476978532.jpg%5D%5D%3E%3C%2Fimage_0_0%3E%3C%2Fmedias%3E'
    4     1        INIT_FCALL                                               'simplexml_load_string'
          2        CONCAT                                           ~5      '%3Ccontent%3E', !0
          3        CONCAT                                           ~6      ~5, '%3C%2Fcontent%3E'
          4        SEND_VAL                                                 ~6
          5        DO_ICALL                                         $7      
          6        ASSIGN                                                   !1, $7
    5     7        INIT_METHOD_CALL                                         !1, 'xpath'
          8        SEND_VAL_EX                                              'medias'
          9        DO_FCALL                                      0  $9      
         10        ASSIGN                                                   !1, $9
    7    11        INIT_METHOD_CALL                                         !1, 'children'
         12        DO_FCALL                                      0  $11     
         13      > FE_RESET_R                                       $12     $11, ->18
         14    > > FE_FETCH_R                                       ~13     $12, !2, ->18
         15    >   ASSIGN                                                   !3, ~13
    9    16        ECHO                                                     !2
    7    17      > JMP                                                      ->14
         18    >   FE_FREE                                                  $12
   13    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.03 ms | 1395 KiB | 15 Q