3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml=simplexml_load_string(<<<XML <Records> <Record> <Row A="Constituency" B="State" C="Election date" D="Population" E="Wikipedia link" F="Election.in link" /> </Record> <Record> <Row A="Adilabad" B="Andhra Pradesh" C="4/30/2014" E="http://en.wikipedia.org/wiki/Adilabad_(Lok_Sabha_constituency)" F="http://www.elections.in/andhra-pradesh/parliamentary-constituencies/adilabad.html" /> </Record> </Records> XML ); foreach($xml->entry as $c){ echo("<br /><br />"); echo("Titulo:".$c->A."<br />"); echo("ID:".$c->B."<br />"); echo("Link:".$c->C."<br />"); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 21
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 21
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/2c0qd
function name:  (null)
number of ops:  23
compiled vars:  !0 = $xml, !1 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'simplexml_load_string'
    3     1        SEND_VAL                                                 '%3CRecords%3E%0A++%3CRecord%3E%0A++++%3CRow%0A++++++A%3D%22Constituency%22%0A++++++B%3D%22State%22%0A++++++C%3D%22Election+date%22%0A++++++D%3D%22Population%22%0A++++++E%3D%22Wikipedia+link%22%0A++++++F%3D%22Election.in+link%22%0A++++%2F%3E%0A++%3C%2FRecord%3E%0A++%3CRecord%3E%0A++++%3CRow%0A++++++A%3D%22Adilabad%22%0A++++++B%3D%22Andhra+Pradesh%22%0A++++++C%3D%224%2F30%2F2014%22%0A++++++E%3D%22http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FAdilabad_%28Lok_Sabha_constituency%29%22%0A++++++F%3D%22http%3A%2F%2Fwww.elections.in%2Fandhra-pradesh%2Fparliamentary-constituencies%2Fadilabad.html%22%0A++++%2F%3E%0A++%3C%2FRecord%3E%0A%3C%2FRecords%3E'
          2        DO_ICALL                                         $2      
    2     3        ASSIGN                                                   !0, $2
   28     4        FETCH_OBJ_R                                      ~4      !0, 'entry'
          5      > FE_RESET_R                                       $5      ~4, ->21
          6    > > FE_FETCH_R                                               $5, !1, ->21
   29     7    >   ECHO                                                     '%3Cbr+%2F%3E%3Cbr+%2F%3E'
   30     8        FETCH_OBJ_R                                      ~6      !1, 'A'
          9        CONCAT                                           ~7      'Titulo%3A', ~6
         10        CONCAT                                           ~8      ~7, '%3Cbr+%2F%3E'
         11        ECHO                                                     ~8
   31    12        FETCH_OBJ_R                                      ~9      !1, 'B'
         13        CONCAT                                           ~10     'ID%3A', ~9
         14        CONCAT                                           ~11     ~10, '%3Cbr+%2F%3E'
         15        ECHO                                                     ~11
   32    16        FETCH_OBJ_R                                      ~12     !1, 'C'
         17        CONCAT                                           ~13     'Link%3A', ~12
         18        CONCAT                                           ~14     ~13, '%3Cbr+%2F%3E'
         19        ECHO                                                     ~14
   28    20      > JMP                                                      ->6
         21    >   FE_FREE                                                  $5
   34    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.6 ms | 1401 KiB | 15 Q