3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '<table><tr><td>A</td><td>B</td></tr></table>'; $DOM = new DOMDocument; $DOM->loadHTML($a); $xPath = new DOMXPath($DOM); $other = $xPath->query('//not(tbody|thead) tr'); var_dump($other);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lAVPk
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $DOM, !2 = $xPath, !3 = $other
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Ctable%3E%3Ctr%3E%3Ctd%3EA%3C%2Ftd%3E%3Ctd%3EB%3C%2Ftd%3E%3C%2Ftr%3E%3C%2Ftable%3E'
    4     1        NEW                                              $5      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $5
    5     4        INIT_METHOD_CALL                                         !1, 'loadHTML'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
    6     7        NEW                                              $9      'DOMXPath'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !2, $9
    8    11        INIT_METHOD_CALL                                         !2, 'query'
         12        SEND_VAL_EX                                              '%2F%2Fnot%28tbody%7Cthead%29+tr'
         13        DO_FCALL                                      0  $12     
         14        ASSIGN                                                   !3, $12
   10    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.81 ms | 1386 KiB | 15 Q