3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rows = simplexml_load_string(<<<XML <rows> <row id="1_2"> <col1>Adilabad</col1> <col2>Andhra Pradesh</col2> <col3>30-Apr-2014</col3> <col4>http://en.wikipedia.org/wiki/Adilabad_(Lok_Sabha_constituency)</col4> <col5>http://www.elections.in/andhra-pradesh/parliamentary-constituencies/adilabad.html</col5> </row> <row id="1_3"> <col1>Peddapalli</col1> <col2>Andhra Pradesh</col2> <col3>30-Apr-2014</col3> <col4>http://en.wikipedia.org/wiki/Peddapalli_(Lok_Sabha_constituency)</col4> <col5>http://www.elections.in/andhra-pradesh/parliamentary-constituencies/peddapalli.html</col5> </row> </rows> XML ); foreach ($rows->row as $row) { echo $row->col1.' , '.$row->col2."\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 14
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/VKedH
function name:  (null)
number of ops:  16
compiled vars:  !0 = $rows, !1 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'simplexml_load_string'
    3     1        SEND_VAL                                                 '%3Crows%3E%0A%09%3Crow+id%3D%221_2%22%3E%0A%09%09%3Ccol1%3EAdilabad%3C%2Fcol1%3E%0A%09%09%3Ccol2%3EAndhra+Pradesh%3C%2Fcol2%3E%0A%09%09%3Ccol3%3E30-Apr-2014%3C%2Fcol3%3E%0A%09%09%3Ccol4%3Ehttp%3A%2F%2Fen.wikipedia.org%2Fwiki%2FAdilabad_%28Lok_Sabha_constituency%29%3C%2Fcol4%3E%0A%09%09%3Ccol5%3Ehttp%3A%2F%2Fwww.elections.in%2Fandhra-pradesh%2Fparliamentary-constituencies%2Fadilabad.html%3C%2Fcol5%3E%0A%09%3C%2Frow%3E%0A%09%3Crow+id%3D%221_3%22%3E%0A%09%09%3Ccol1%3EPeddapalli%3C%2Fcol1%3E%0A%09%09%3Ccol2%3EAndhra+Pradesh%3C%2Fcol2%3E%0A%09%09%3Ccol3%3E30-Apr-2014%3C%2Fcol3%3E%0A%09%09%3Ccol4%3Ehttp%3A%2F%2Fen.wikipedia.org%2Fwiki%2FPeddapalli_%28Lok_Sabha_constituency%29%3C%2Fcol4%3E%0A%09%09%3Ccol5%3Ehttp%3A%2F%2Fwww.elections.in%2Fandhra-pradesh%2Fparliamentary-constituencies%2Fpeddapalli.html%3C%2Fcol5%3E%0A%09%3C%2Frow%3E%0A%3C%2Frows%3E'
          2        DO_ICALL                                         $2      
    2     3        ASSIGN                                                   !0, $2
   23     4        FETCH_OBJ_R                                      ~4      !0, 'row'
          5      > FE_RESET_R                                       $5      ~4, ->14
          6    > > FE_FETCH_R                                               $5, !1, ->14
   24     7    >   FETCH_OBJ_R                                      ~6      !1, 'col1'
          8        CONCAT                                           ~7      ~6, '+%2C+'
          9        FETCH_OBJ_R                                      ~8      !1, 'col2'
         10        CONCAT                                           ~9      ~7, ~8
         11        CONCAT                                           ~10     ~9, '%0A'
         12        ECHO                                                     ~10
   23    13      > JMP                                                      ->6
         14    >   FE_FREE                                                  $5
   25    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.36 ms | 1387 KiB | 15 Q