3v4l.org

run code in 300+ PHP versions simultaneously
<?php $doc = new DOMDocument('1.0', 'UTF-8'); $doc->preserveWhiteSpace = false; @$doc->loadHTMLFile("http://l2.hopzone.net/lineage2/details/94362/L2-aeron"); $xpath = new DOMXPath($doc); $query = "//span[@class='rank anonymous tooltip']"; $entries = $xpath->query($query); var_dump($entries);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hJ6Sj
function name:  (null)
number of ops:  25
compiled vars:  !0 = $doc, !1 = $xpath, !2 = $query, !3 = $entries
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'DOMDocument'
          1        SEND_VAL_EX                                              '1.0'
          2        SEND_VAL_EX                                              'UTF-8'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $4
    4     5        ASSIGN_OBJ                                               !0, 'preserveWhiteSpace'
          6        OP_DATA                                                  <false>
    6     7        BEGIN_SILENCE                                    ~8      
          8        INIT_METHOD_CALL                                         !0, 'loadHTMLFile'
          9        SEND_VAL_EX                                              'http%3A%2F%2Fl2.hopzone.net%2Flineage2%2Fdetails%2F94362%2FL2-aeron'
         10        DO_FCALL                                      0          
         11        END_SILENCE                                              ~8
    8    12        NEW                                              $10     'DOMXPath'
         13        SEND_VAR_EX                                              !0
         14        DO_FCALL                                      0          
         15        ASSIGN                                                   !1, $10
    9    16        ASSIGN                                                   !2, '%2F%2Fspan%5B%40class%3D%27rank+anonymous+tooltip%27%5D'
   10    17        INIT_METHOD_CALL                                         !1, 'query'
         18        SEND_VAR_EX                                              !2
         19        DO_FCALL                                      0  $14     
         20        ASSIGN                                                   !3, $14
   11    21        INIT_FCALL                                               'var_dump'
         22        SEND_VAR                                                 !3
         23        DO_ICALL                                                 
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.8 ms | 1387 KiB | 15 Q