3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:cb="http://www.cbwiki.net/wiki/index.php/Specification_1.1" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/1999/02/22-rdf-syntax-ns# rdf.xsd"> <script id="tinyhippos-injected"/> <channel rdf:about="http://www.federalreserve.gov/releases/H15">...</channel> <item rdf:about="http://www.federalreserve.gov/releases/H15#1"> <title> US: H15 0.41 2014-10-22 FRB Market yield on U.S. Treasury securities at 2-year constant maturity, quoted on investment basis </title> <link>http://www.federalreserve.gov/releases/H15#1</link> <description>...</description> <dc:date>2014-10-22T12:00:00-05:00</dc:date> <dc:language>en</dc:language> <dc:creator>FRB</dc:creator> <cb:statistics> <cb:country>US</cb:country> <cb:institutionAbbrev>FRB</cb:institutionAbbrev> <cb:otherStatistic> <cb:value decimals="2" unit_mult="1" units="Percent:_Per_Year">0.41</cb:value> <cb:topic>H15</cb:topic> <cb:coverage> Market yield on U.S. Treasury securities at 2-year constant maturity, quoted on investment basis </cb:coverage> <cb:observationPeriod frequency="business">2014-10-22</cb:observationPeriod> <cb:dataType/> </cb:otherStatistic> </cb:statistics> </item> </rdf:RDF>'; $xml = simplexml_load_string( $xml); foreach( $xml->xpath( './/child') as $child) { echo $child->attributes()['name'] . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/PmPo5
function name:  (null)
number of ops:  18
compiled vars:  !0 = $xml, !1 = $child
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Crdf%3ARDF+xmlns%3Ardf%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23%22+xmlns%3D%22http%3A%2F%2Fpurl.org%2Frss%2F1.0%2F%22+xmlns%3Acb%3D%22http%3A%2F%2Fwww.cbwiki.net%2Fwiki%2Findex.php%2FSpecification_1.1%22+xmlns%3Adc%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Felements%2F1.1%2F%22+xmlns%3Adcterms%3D%22http%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%22+xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22+xsi%3AschemaLocation%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23+rdf.xsd%22%3E%0A%3Cscript+id%3D%22tinyhippos-injected%22%2F%3E%0A%3Cchannel+rdf%3Aabout%3D%22http%3A%2F%2Fwww.federalreserve.gov%2Freleases%2FH15%22%3E...%3C%2Fchannel%3E%0A%3Citem+rdf%3Aabout%3D%22http%3A%2F%2Fwww.federalreserve.gov%2Freleases%2FH15%231%22%3E%0A%3Ctitle%3E%0AUS%3A+H15+0.41+2014-10-22+FRB+Market+yield+on+U.S.+Treasury+securities+at+2-year+constant+maturity%2C+quoted+on+investment+basis%0A%3C%2Ftitle%3E%0A%3Clink%3Ehttp%3A%2F%2Fwww.federalreserve.gov%2Freleases%2FH15%231%3C%2Flink%3E%0A%3Cdescription%3E...%3C%2Fdescription%3E%0A%3Cdc%3Adate%3E2014-10-22T12%3A00%3A00-05%3A00%3C%2Fdc%3Adate%3E%0A%3Cdc%3Alanguage%3Een%3C%2Fdc%3Alanguage%3E%0A%3Cdc%3Acreator%3EFRB%3C%2Fdc%3Acreator%3E%0A%3Ccb%3Astatistics%3E%0A%3Ccb%3Acountry%3EUS%3C%2Fcb%3Acountry%3E%0A%3Ccb%3AinstitutionAbbrev%3EFRB%3C%2Fcb%3AinstitutionAbbrev%3E%0A%3Ccb%3AotherStatistic%3E%0A%3Ccb%3Avalue+decimals%3D%222%22+unit_mult%3D%221%22+units%3D%22Percent%3A_Per_Year%22%3E0.41%3C%2Fcb%3Avalue%3E%0A%3Ccb%3Atopic%3EH15%3C%2Fcb%3Atopic%3E%0A%3Ccb%3Acoverage%3E%0AMarket+yield+on+U.S.+Treasury+securities+at+2-year+constant+maturity%2C+quoted+on+investment+basis%0A%3C%2Fcb%3Acoverage%3E%0A%3Ccb%3AobservationPeriod+frequency%3D%22business%22%3E2014-10-22%3C%2Fcb%3AobservationPeriod%3E%0A%3Ccb%3AdataType%2F%3E%0A%3C%2Fcb%3AotherStatistic%3E%0A%3C%2Fcb%3Astatistics%3E%0A%3C%2Fitem%3E%0A%3C%2Frdf%3ARDF%3E'
   30     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !0, $3
   32     5        INIT_METHOD_CALL                                         !0, 'xpath'
          6        SEND_VAL_EX                                              '.%2F%2Fchild'
          7        DO_FCALL                                      0  $5      
          8      > FE_RESET_R                                       $6      $5, ->16
          9    > > FE_FETCH_R                                               $6, !1, ->16
   33    10    >   INIT_METHOD_CALL                                         !1, 'attributes'
         11        DO_FCALL                                      0  $7      
         12        FETCH_DIM_R                                      ~8      $7, 'name'
         13        CONCAT                                           ~9      ~8, '%0A'
         14        ECHO                                                     ~9
   32    15      > JMP                                                      ->9
         16    >   FE_FREE                                                  $6
   34    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.12 ms | 1400 KiB | 15 Q