3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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) { print_r($media); //echo $media->asXML(); } //print_r($croobly_data);
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 14, Position 2 = 19
Branch analysis from position: 14
Jump found. Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
Jump found. Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 19
Jump found. Position 1 = -2
Branch analysis from position: 19
filename:       /in/A6fDE
function name:  (null)
number of ops:  21
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
   7    11        INIT_METHOD_CALL                                         !1, 'children'
        12        DO_FCALL                                      0  $10     
        13      > FE_RESET_R                                       $11     $10, ->19
        14    > > FE_FETCH_R                                               $11, !2, ->19
   9    15    >   INIT_FCALL                                               'print_r'
        16        SEND_VAR                                                 !2
        17        DO_ICALL                                                 
        18      > JMP                                                      ->14
        19    >   FE_FREE                                                  $11
        20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0