3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = file_get_contents('http://rezeptewiki.org/wiki/Zutat:Ackererbse'); var_dump($a); $xml = new SimpleXMLElement($a); // seach records by tag value: // find all book records with price higher than 40$ $res = $xml->xpath('//div[@id="mw-content-text"]/table/tbody/tr[5]/td/i/text() *'); var_dump($res);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0EEI6
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $xml, !2 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'file_get_contents'
          1        SEND_VAL                                                 'http%3A%2F%2Frezeptewiki.org%2Fwiki%2FZutat%3AAckererbse'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    4     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                                 
    5     7        NEW                                              $6      'SimpleXMLElement'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $6
    8    11        INIT_METHOD_CALL                                         !1, 'xpath'
         12        SEND_VAL_EX                                              '%2F%2Fdiv%5B%40id%3D%22mw-content-text%22%5D%2Ftable%2Ftbody%2Ftr%5B5%5D%2Ftd%2Fi%2Ftext%28%29+%2A'
         13        DO_FCALL                                      0  $9      
         14        ASSIGN                                                   !2, $9
    9    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !2
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.93 ms | 1395 KiB | 17 Q