3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0" encoding="utf-8"?> <rss xmlns:g="http://base.google.com/ns/1.0" version="2.0"> <channel> <title>werwer</title> <link>werwerwe</link> <item> <g:id>704667</g:id> <title>Nike</title> <description>erterterter</description> </item> <item> <g:id>4456456</g:id> <title>Nike</title> <description>erterterter</description> </item> </channel></rss>'; $xml = simplexml_load_string($xml); foreach ($xml->channel->item as $item) { echo $item->id.' - '.$item->title.' - '.$item->description.PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 19
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 19
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/iDtYY
function name:  (null)
number of ops:  21
compiled vars:  !0 = $xml, !1 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22utf-8%22%3F%3E%0A%3Crss+xmlns%3Ag%3D%22http%3A%2F%2Fbase.google.com%2Fns%2F1.0%22+version%3D%222.0%22%3E%0A%3Cchannel%3E%0A%3Ctitle%3Ewerwer%3C%2Ftitle%3E%0A%3Clink%3Ewerwerwe%3C%2Flink%3E%0A%0A%3Citem%3E%0A%3Cg%3Aid%3E704667%3C%2Fg%3Aid%3E%0A%3Ctitle%3ENike%3C%2Ftitle%3E%0A%3Cdescription%3Eerterterter%3C%2Fdescription%3E%0A%3C%2Fitem%3E%0A%0A%3Citem%3E%0A%3Cg%3Aid%3E4456456%3C%2Fg%3Aid%3E%0A%3Ctitle%3ENike%3C%2Ftitle%3E%0A%3Cdescription%3Eerterterter%3C%2Fdescription%3E%0A%3C%2Fitem%3E%0A%0A%3C%2Fchannel%3E%3C%2Frss%3E'
   22     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
   24     5        FETCH_OBJ_R                                      ~5      !0, 'channel'
          6        FETCH_OBJ_R                                      ~6      ~5, 'item'
          7      > FE_RESET_R                                       $7      ~6, ->19
          8    > > FE_FETCH_R                                               $7, !1, ->19
   25     9    >   FETCH_OBJ_R                                      ~8      !1, 'id'
         10        CONCAT                                           ~9      ~8, '+-+'
         11        FETCH_OBJ_R                                      ~10     !1, 'title'
         12        CONCAT                                           ~11     ~9, ~10
         13        CONCAT                                           ~12     ~11, '+-+'
         14        FETCH_OBJ_R                                      ~13     !1, 'description'
         15        CONCAT                                           ~14     ~12, ~13
         16        CONCAT                                           ~15     ~14, '%0A'
         17        ECHO                                                     ~15
   24    18      > JMP                                                      ->8
         19    >   FE_FREE                                                  $7
   26    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
295.34 ms | 1011 KiB | 14 Q