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')->children(); foreach($croobly_data->children() as $media) { print_r($media); //echo $media->asXML(); } //print_r($croobly_data);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 21
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/eDrVX
function name:  (null)
number of ops:  23
compiled vars:  !0 = $contentData, !1 = $croobly_data, !2 = $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                                           ~4      '%3Ccontent%3E', !0
          3        CONCAT                                           ~5      ~4, '%3C%2Fcontent%3E'
          4        SEND_VAL                                                 ~5
          5        DO_ICALL                                         $6      
          6        ASSIGN                                                   !1, $6
    5     7        INIT_METHOD_CALL                                         !1, 'xpath'
          8        SEND_VAL_EX                                              'medias'
          9        DO_FCALL                                      0  $8      
         10        INIT_METHOD_CALL                                         $8, 'children'
         11        DO_FCALL                                      0  $9      
         12        ASSIGN                                                   !1, $9
    7    13        INIT_METHOD_CALL                                         !1, 'children'
         14        DO_FCALL                                      0  $11     
         15      > FE_RESET_R                                       $12     $11, ->21
         16    > > FE_FETCH_R                                               $12, !2, ->21
    9    17    >   INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                                 
    7    20      > JMP                                                      ->16
         21    >   FE_FREE                                                  $12
   14    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.62 ms | 1395 KiB | 17 Q