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 = 19, Position 2 = 38
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 38
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 37
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 37
Branch analysis from position: 38
2 jumps found. (Code = 77) Position 1 = 43, Position 2 = 62
Branch analysis from position: 43
2 jumps found. (Code = 78) Position 1 = 44, Position 2 = 62
Branch analysis from position: 44
2 jumps found. (Code = 43) Position 1 = 54, Position 2 = 61
Branch analysis from position: 54
1 jumps found. (Code = 42) Position 1 = 43
Branch analysis from position: 43
Branch analysis from position: 61
Branch analysis from position: 62
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 62
Branch analysis from position: 38
filename:       /in/gS6gF
function name:  (null)
number of ops:  72
compiled vars:  !0 = $html, !1 = $doc, !2 = $xpath, !3 = $img, !4 = $src, !5 = $m, !6 = $link, !7 = $href
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%2FFind%3A%0A%3Cimg+src%3D%22icons%2Fgoogle-icon.svg%22+%3E+%0A%2F%2FReplace+to%3A+%0A%3Cimg+src%3D%22%7B%7Basset%28%27icons%2Fgoogle-icon.svg%27%29%7D%7D%22+%3E%0A%0A%2F%2FFind%3A%0A%3Clink+href%3D%22css%2Fstyle.css%22%3E+%0A%2F%2FReplace+to%3A+%0A%3Clink+href%3D%22%7B%7Basset%28%27css%2Fstyle.css%27%29%7D%7D%22%3E%0A%2F%2A%2A+etc...+%2A%2F%0A%3Ca+href%3D%22http%3A%2F%2Fwww.example.com%22%3E'
   17     1        NEW                                              $9      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $9
   18     4        INIT_METHOD_CALL                                         !1, 'loadHTML'
          5        ROPE_INIT                                     3  ~13     '%3Cdiv%3E'
          6        ROPE_ADD                                      1  ~13     ~13, !0
          7        ROPE_END                                      2  ~12     ~13, '%3C%2Fdiv%3E'
          8        SEND_VAL_EX                                              ~12
          9        SEND_VAL_EX                                              8196
         10        DO_FCALL                                      0          
   20    11        NEW                                              $16     'DOMXPath'
         12        SEND_VAR_EX                                              !1
         13        DO_FCALL                                      0          
         14        ASSIGN                                                   !2, $16
   21    15        INIT_METHOD_CALL                                         !2, 'query'
         16        SEND_VAL_EX                                              '%2F%2Fimg'
         17        DO_FCALL                                      0  $19     
         18      > FE_RESET_R                                       $20     $19, ->38
         19    > > FE_FETCH_R                                               $20, !3, ->38
   22    20    >   INIT_METHOD_CALL                                         !3, 'getAttribute'
         21        SEND_VAL_EX                                              'src'
         22        DO_FCALL                                      0  $21     
         23        ASSIGN                                                   !4, $21
   23    24        INIT_FCALL                                               'preg_match'
         25        SEND_VAL                                                 '%2F%5E%28%3F%21%7B%7B%5Cs%2Aasset%29.%2A%24%2F'
         26        SEND_VAR                                                 !4
         27        SEND_REF                                                 !5
         28        DO_ICALL                                         $23     
         29      > JMPZ                                                     $23, ->37
   24    30    >   INIT_METHOD_CALL                                         !3, 'setAttribute'
         31        SEND_VAL_EX                                              'src'
         32        FETCH_DIM_R                                      ~24     !5, 0
         33        CONCAT                                           ~25     '%7B%7Basset%28%27', ~24
         34        CONCAT                                           ~26     ~25, '%29%27%7D%7D'
         35        SEND_VAL_EX                                              ~26
         36        DO_FCALL                                      0          
   21    37    > > JMP                                                      ->19
         38    >   FE_FREE                                                  $20
   28    39        INIT_METHOD_CALL                                         !2, 'query'
         40        SEND_VAL_EX                                              '%2F%2Flink'
         41        DO_FCALL                                      0  $28     
         42      > FE_RESET_R                                       $29     $28, ->62
         43    > > FE_FETCH_R                                               $29, !6, ->62
   29    44    >   INIT_METHOD_CALL                                         !6, 'getAttribute'
         45        SEND_VAL_EX                                              'href'
         46        DO_FCALL                                      0  $30     
         47        ASSIGN                                                   !7, $30
   30    48        INIT_FCALL                                               'preg_match'
         49        SEND_VAL                                                 '%2F%5E%28%3F%21%7B%7B%5Cs%2Aasset%29.%2A%24%2F'
         50        SEND_VAR                                                 !7
         51        SEND_REF                                                 !5
         52        DO_ICALL                                         $32     
         53      > JMPZ                                                     $32, ->61
   31    54    >   INIT_METHOD_CALL                                         !6, 'setAttribute'
         55        SEND_VAL_EX                                              'href'
         56        FETCH_DIM_R                                      ~33     !5, 0
         57        CONCAT                                           ~34     '%7B%7Basset%28%27', ~33
         58        CONCAT                                           ~35     ~34, '%29%27%7D%7D'
         59        SEND_VAL_EX                                              ~35
         60        DO_FCALL                                      0          
   28    61    > > JMP                                                      ->43
         62    >   FE_FREE                                                  $29
   36    63        INIT_FCALL                                               'substr'
         64        INIT_METHOD_CALL                                         !1, 'saveXML'
         65        DO_FCALL                                      0  $37     
         66        SEND_VAR                                                 $37
         67        SEND_VAL                                                 44
         68        SEND_VAL                                                 -7
         69        DO_ICALL                                         $38     
         70        ECHO                                                     $38
         71      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
232.12 ms | 973 KiB | 15 Q