3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<< HTML <html> <h1>hello<span>world</span></h1> <p>random text</p> <h1>title number two!</h1> </html> HTML; $reader = new XMLReader; $reader->xml($html); while($reader->read() !== FALSE) { if($reader->name === 'h1' && $reader->nodeType === XMLReader::ELEMENT) { echo $reader->readString(); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 8
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 18
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 8
Branch analysis from position: 22
Branch analysis from position: 8
Branch analysis from position: 18
Branch analysis from position: 14
filename:       /in/qavk8
function name:  (null)
number of ops:  23
compiled vars:  !0 = $html, !1 = $reader
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Chtml%3E%0A%3Ch1%3Ehello%3Cspan%3Eworld%3C%2Fspan%3E%3C%2Fh1%3E%0A%3Cp%3Erandom+text%3C%2Fp%3E%0A%3Ch1%3Etitle+number+two%21%3C%2Fh1%3E%0A%3C%2Fhtml%3E'
   10     1        NEW                                              $3      'XMLReader'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $3
   11     4        INIT_METHOD_CALL                                         !1, 'xml'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
   12     7      > JMP                                                      ->18
   13     8    >   FETCH_OBJ_R                                      ~7      !1, 'name'
          9        IS_IDENTICAL                                     ~8      ~7, 'h1'
         10      > JMPZ_EX                                          ~8      ~8, ->14
         11    >   FETCH_OBJ_R                                      ~9      !1, 'nodeType'
         12        IS_IDENTICAL                                     ~10     ~9, 1
         13        BOOL                                             ~8      ~10
         14    > > JMPZ                                                     ~8, ->18
   14    15    >   INIT_METHOD_CALL                                         !1, 'readString'
         16        DO_FCALL                                      0  $11     
         17        ECHO                                                     $11
   12    18    >   INIT_METHOD_CALL                                         !1, 'read'
         19        DO_FCALL                                      0  $12     
         20        TYPE_CHECK                                  1018          $12
         21      > JMPNZ                                                    ~13, ->8
   16    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153 ms | 1394 KiB | 13 Q