3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml=simplexml_load_string(<<<XML <?xml version="1.0"?> <root> <element> <feed id="9"> <title>test</title> <table>feeds</table> <link/> <feed_type>API</feed_type> <affiliate/> <mwst>ja</mwst> <tld>DE</tld> <query/> </feed> <feed id="10"> <title>test</title> <table>feeds</table> <link/> <feed_type>API</feed_type> <affiliate/> <mwst>ja</mwst> <tld>DE</tld> <query/> </feed> </element> </root> XML ); echo $xml->xpath('element/feed[@id="10"]')[0]; echo $xml->asXML();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PIOro
function name:  (null)
number of ops:  13
compiled vars:  !0 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'simplexml_load_string'
    3     1        SEND_VAL                                                 '%3C%3Fxml+version%3D%221.0%22%3F%3E%0A%3Croot%3E%0A%09%3Celement%3E%0A++++%09%3Cfeed+id%3D%229%22%3E%0A++++++++%09%3Ctitle%3Etest%3C%2Ftitle%3E%0A++++++++%09%3Ctable%3Efeeds%3C%2Ftable%3E%0A++++++++%09%3Clink%2F%3E%0A++++++++%09%3Cfeed_type%3EAPI%3C%2Ffeed_type%3E%0A++++++++%09%3Caffiliate%2F%3E%0A++++++++%09%3Cmwst%3Eja%3C%2Fmwst%3E%0A++++++++%09%3Ctld%3EDE%3C%2Ftld%3E%0A++++++++%09%3Cquery%2F%3E%0A++++%09%3C%2Ffeed%3E%0A++++%09%3Cfeed+id%3D%2210%22%3E%0A++++++++%09%3Ctitle%3Etest%3C%2Ftitle%3E%0A++++++++%09%3Ctable%3Efeeds%3C%2Ftable%3E%0A++++++++%09%3Clink%2F%3E%0A++++++++%09%3Cfeed_type%3EAPI%3C%2Ffeed_type%3E%0A++++++++%09%3Caffiliate%2F%3E%0A++++++++%09%3Cmwst%3Eja%3C%2Fmwst%3E%0A++++++++%09%3Ctld%3EDE%3C%2Ftld%3E%0A++++++++%09%3Cquery%2F%3E%0A++++%09%3C%2Ffeed%3E%0A%09%3C%2Felement%3E%0A%3C%2Froot%3E'
          2        DO_ICALL                                         $1      
    2     3        ASSIGN                                                   !0, $1
   30     4        INIT_METHOD_CALL                                         !0, 'xpath'
          5        SEND_VAL_EX                                              'element%2Ffeed%5B%40id%3D%2210%22%5D'
          6        DO_FCALL                                      0  $3      
          7        FETCH_DIM_R                                      ~4      $3, 0
          8        ECHO                                                     ~4
   32     9        INIT_METHOD_CALL                                         !0, 'asXML'
         10        DO_FCALL                                      0  $5      
         11        ECHO                                                     $5
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.08 ms | 1386 KiB | 15 Q