3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = file_get_contents('http://rezeptewiki.org/wiki/Zutat:Ackererbse'); $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/PdA91
function name:  (null)
number of ops:  16
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        NEW                                              $5      'SimpleXMLElement'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $5
    7     8        INIT_METHOD_CALL                                         !1, 'xpath'
          9        SEND_VAL_EX                                              '%2F%2Fdiv%5B%40id%3D%22mw-content-text%22%5D%2Ftable%2Ftbody%2Ftr%5B5%5D%2Ftd%2Fi%2Ftext%28%29+%2A'
         10        DO_FCALL                                      0  $8      
         11        ASSIGN                                                   !2, $8
    8    12        INIT_FCALL                                               'var_dump'
         13        SEND_VAR                                                 !2
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.53 ms | 1394 KiB | 17 Q