3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<!--[if lt IE 7 ]><!--> <html lang="hi" class="ie ie6"> <!--<![endif]-->'; $doc = new DOMDocument(); $doc->loadHTML($html); $selector = new DOMXPath($doc); echo $selector->query('//html')->item(0)->nodeName;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JIOrD
function name:  (null)
number of ops:  20
compiled vars:  !0 = $html, !1 = $doc, !2 = $selector
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, '%3C%21--%5Bif+lt+IE+7+%5D%3E%3C%21--%3E+%3Chtml+lang%3D%22hi%22+class%3D%22ie+ie6%22%3E+%3C%21--%3C%21%5Bendif%5D--%3E'
    6     1        NEW                                              $4      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $4
    7     4        INIT_METHOD_CALL                                         !1, 'loadHTML'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
    9     7        NEW                                              $8      'DOMXPath'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !2, $8
   11    11        INIT_METHOD_CALL                                         !2, 'query'
         12        SEND_VAL_EX                                              '%2F%2Fhtml'
         13        DO_FCALL                                      0  $11     
         14        INIT_METHOD_CALL                                         $11, 'item'
         15        SEND_VAL_EX                                              0
         16        DO_FCALL                                      0  $12     
         17        FETCH_OBJ_R                                      ~13     $12, 'nodeName'
         18        ECHO                                                     ~13
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.21 ms | 1393 KiB | 13 Q