3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 26, Position 2 = 63
Branch analysis from position: 26
2 jumps found. (Code = 78) Position 1 = 27, Position 2 = 63
Branch analysis from position: 27
4 jumps found. (Code = 188) Position 1 = 34, Position 2 = 50, Position 3 = 56, Position 4 = 29
Branch analysis from position: 34
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 45
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 49
Branch analysis from position: 49
1 jumps found. (Code = 42) Position 1 = 61
Branch analysis from position: 61
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 45
2 jumps found. (Code = 43) Position 1 = 47, Position 2 = 49
Branch analysis from position: 47
1 jumps found. (Code = 42) Position 1 = 63
Branch analysis from position: 63
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 49
Branch analysis from position: 50
2 jumps found. (Code = 43) Position 1 = 52, Position 2 = 55
Branch analysis from position: 52
1 jumps found. (Code = 42) Position 1 = 61
Branch analysis from position: 61
Branch analysis from position: 55
Branch analysis from position: 56
2 jumps found. (Code = 43) Position 1 = 58, Position 2 = 60
Branch analysis from position: 58
1 jumps found. (Code = 42) Position 1 = 63
Branch analysis from position: 63
Branch analysis from position: 60
1 jumps found. (Code = 42) Position 1 = 61
Branch analysis from position: 61
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 34
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 50
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 56
Branch analysis from position: 56
Branch analysis from position: 50
Branch analysis from position: 34
Branch analysis from position: 63
Branch analysis from position: 63
filename:       /in/16XZe
function name:  (null)
number of ops:  68
compiled vars:  !0 = $html, !1 = $doc, !2 = $div, !3 = $node, !4 = $xpath, !5 = $headers, !6 = $child
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cdiv+id%3D%22top%22%3E%3Ch3%3E%3Cspan+class%3D%22header%22+id%3D%22first_set%22%3EMy+Heading%3C%2Fspan%3E%3C%2Fh3%3E%0A%3Cul%3E%3Cli%3EText+Text+Text%3C%2Fli%3E%3C%2Ful%3E%0A%3Cul%3E%3Cli%3EText+Text+Text%3C%2Fli%3E%3C%2Ful%3E%0A%3Cul%3E%3Cli%3EText+Text+Text%3C%2Fli%3E%3C%2Ful%3E%0A%3Ch3%3E%3Cspan+class%3D%22header%22+id%3D%22second_set%22%3EMy+Second+Heading%3C%2Fspan%3E%3C%2Fh3%3E%0A%3Cul%3E%3Cli%3EText+Text+Text%3C%2Fli%3E%3C%2Ful%3E%0A%3Cul%3E%3Cli%3EText+Text+Text%3C%2Fli%3E%3C%2Ful%3E%0A%3Cul%3E%3Cli%3EText+Text+Text%3C%2Fli%3E%3C%2Ful%3E%0A%3Ch3%3E%3Cspan+class%3D%22header%22+id%3D%22third_set%22%3EMy+Third+Heading%3C%2Fspan%3E%3C%2Fh3%3E%0A%3Cul%3E%3Cli%3EText+Text+Text%3C%2Fli%3E%3C%2Ful%3E%0A%3Cul%3E%3Cli%3EText+Text+Text%3C%2Fli%3E%3C%2Ful%3E%0A%3Cul%3E%3Cli%3EText+Text+Text%3C%2Fli%3E%3C%2Ful%3E%0A%3C%2Fdiv%3E'
   15     1        NEW                                              $8      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $8
   16     4        INIT_METHOD_CALL                                         !1, 'loadHTML'
          5        SEND_VAR_EX                                              !0
          6        SEND_VAL_EX                                              8196
          7        DO_FCALL                                      0          
   17     8        INIT_METHOD_CALL                                         !1, 'createElement'
          9        SEND_VAL_EX                                              'div'
         10        DO_FCALL                                      0  $12     
         11        ASSIGN                                                   !2, $12
   18    12        INIT_METHOD_CALL                                         !1, 'getElementById'
         13        SEND_VAL_EX                                              'top'
         14        DO_FCALL                                      0  $14     
         15        ASSIGN                                                   !3, $14
   19    16        NEW                                              $16     'DOMXPath'
         17        SEND_VAR_EX                                              !1
         18        DO_FCALL                                      0          
         19        ASSIGN                                                   !4, $16
   20    20        ASSIGN                                                   !5, 0
   21    21        INIT_METHOD_CALL                                         !4, 'query'
         22        SEND_VAL_EX                                              '.%2F%2A'
         23        SEND_VAR_EX                                              !3
         24        DO_FCALL                                      0  $20     
         25      > FE_RESET_R                                       $21     $20, ->63
         26    > > FE_FETCH_R                                               $21, !6, ->63
   22    27    >   FETCH_OBJ_R                                      ~22     !6, 'nodeName'
         28      > SWITCH_STRING                                            ~22, [ 'h3':->34, 'ul':->50, ], ->56
   23    29    >   CASE                                                     ~22, 'h3'
         30      > JMPNZ                                                    ~23, ->34
   33    31    >   CASE                                                     ~22, 'ul'
         32      > JMPNZ                                                    ~23, ->50
         33    > > JMP                                                      ->56
   24    34    >   PRE_INC                                                  !5
   25    35        IS_EQUAL                                                 !5, 2
         36      > JMPZ                                                     ~25, ->45
   26    37    >   INIT_METHOD_CALL                                         !3, 'replaceChild'
         38        SEND_VAR_EX                                              !2
         39        SEND_VAR_EX                                              !6
         40        DO_FCALL                                      0          
   27    41        INIT_METHOD_CALL                                         !2, 'appendChild'
         42        SEND_VAR_EX                                              !6
         43        DO_FCALL                                      0          
   25    44      > JMP                                                      ->49
   29    45    >   IS_EQUAL                                                 !5, 3
         46      > JMPZ                                                     ~28, ->49
   30    47    >   FREE                                                     ~22
         48      > JMP                                                      ->63
   32    49    > > JMP                                                      ->61
   34    50    >   IS_EQUAL                                                 !5, 2
         51      > JMPZ                                                     ~29, ->55
         52    >   INIT_METHOD_CALL                                         !2, 'appendChild'
         53        SEND_VAR_EX                                              !6
         54        DO_FCALL                                      0          
   35    55    > > JMP                                                      ->61
   38    56    >   IS_EQUAL                                                 !5, 2
         57      > JMPZ                                                     ~31, ->60
         58    >   FREE                                                     ~22
         59      > JMP                                                      ->63
   39    60    > > JMP                                                      ->61
         61    >   FREE                                                     ~22
   21    62      > JMP                                                      ->26
         63    >   FE_FREE                                                  $21
   42    64        INIT_METHOD_CALL                                         !1, 'saveHTML'
         65        DO_FCALL                                      0  $32     
         66        ECHO                                                     $32
         67      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
244.63 ms | 973 KiB | 13 Q