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'); $croobly_data = $croobly_data->children(); foreach($croobly_data as $media) { print_r($media->nodeValue); //echo $media->asXML(); } //print_r($croobly_data);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 21
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/0kmug
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        ASSIGN                                                   !1, $8
    6    11        INIT_METHOD_CALL                                         !1, 'children'
         12        DO_FCALL                                      0  $10     
         13        ASSIGN                                                   !1, $10
    8    14      > FE_RESET_R                                       $12     !1, ->21
         15    > > FE_FETCH_R                                               $12, !2, ->21
   10    16    >   INIT_FCALL                                               'print_r'
         17        FETCH_OBJ_R                                      ~13     !2, 'nodeValue'
         18        SEND_VAL                                                 ~13
         19        DO_ICALL                                                 
    8    20      > JMP                                                      ->15
         21    >   FE_FREE                                                  $12
   15    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.75 ms | 1395 KiB | 17 Q