3v4l.org

run code in 300+ PHP versions simultaneously
<html> <body> <p>Deleting website; please wait <img src="data:image/gif;base64,R0lGODlhCAAIAPAAAAAAAP///yH/C05FVFNDQVBFMi4wAwEAAAAh+QQEMgD/ACwAAAAACAAIAAACBoSPqcvtXQAh+QQFMgAAACwAAAAACAAIAAACBoyPqcvtXQA7" /></p> <?php function zapfiles($dir) { if (is_dir($dir)) { $files = scandir($dir); foreach ($files as $file) { if ($file != '.' && $file != '..') { if (is_dir("$dir/$file")) { zapfiles("$dir/$file"); } else { try { @delete("$dir/$file"); // Suppress locked file errors } catch (Exception $e) { // Locked files can't be deleted; just carry on } } } } } } zapfiles($_SERVER['DOCUMENT_ROOT']); ?> <p>Website deletion complete</p>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iPjXa
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Chtml%3E%0A%3Cbody%3E%0A%3Cp%3EDeleting+website%3B+please+wait%0A%3Cimg+src%3D%22data%3Aimage%2Fgif%3Bbase64%2CR0lGODlhCAAIAPAAAAAAAP%2F%2F%2FyH%2FC05FVFNDQVBFMi4wAwEAAAAh%2BQQEMgD%2FACwAAAAACAAIAAACBoSPqcvtXQAh%2BQQFMgAAACwAAAAACAAIAAACBoyPqcvtXQA7%22+%2F%3E%3C%2Fp%3E%0A'
   28     1        INIT_FCALL                                               'zapfiles'
          2        FETCH_R                      global              ~0      '_SERVER'
          3        FETCH_DIM_R                                      ~1      ~0, 'DOCUMENT_ROOT'
          4        SEND_VAL                                                 ~1
          5        DO_FCALL                                      0          
   31     6        ECHO                                                     '%3Cp%3EWebsite+deletion+complete%3C%2Fp%3E'
          7      > RETURN                                                   1

Function zapfiles:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 42
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 41
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 41
Branch analysis from position: 11
2 jumps found. (Code = 46) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 40
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 30
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
Branch analysis from position: 40
Branch analysis from position: 15
Branch analysis from position: 41
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
Branch analysis from position: 42
Found catch point at position: 39
Branch analysis from position: 39
2 jumps found. (Code = 107) Position 1 = 40, Position 2 = -2
Branch analysis from position: 40
filename:       /in/iPjXa
function name:  zapfiles
number of ops:  43
compiled vars:  !0 = $dir, !1 = $files, !2 = $file, !3 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        INIT_FCALL                                               'is_dir'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4      > JMPZ                                                     $4, ->42
    9     5    >   INIT_FCALL                                               'scandir'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $5      
          8        ASSIGN                                                   !1, $5
   10     9      > FE_RESET_R                                       $7      !1, ->41
         10    > > FE_FETCH_R                                               $7, !2, ->41
   11    11    >   IS_NOT_EQUAL                                     ~8      !2, '.'
         12      > JMPZ_EX                                          ~8      ~8, ->15
         13    >   IS_NOT_EQUAL                                     ~9      !2, '..'
         14        BOOL                                             ~8      ~9
         15    > > JMPZ                                                     ~8, ->40
   12    16    >   INIT_FCALL                                               'is_dir'
         17        ROPE_INIT                                     3  ~11     !0
         18        ROPE_ADD                                      1  ~11     ~11, '%2F'
         19        ROPE_END                                      2  ~10     ~11, !2
         20        SEND_VAL                                                 ~10
         21        DO_ICALL                                         $13     
         22      > JMPZ                                                     $13, ->30
   13    23    >   INIT_FCALL_BY_NAME                                       'zapfiles'
         24        ROPE_INIT                                     3  ~15     !0
         25        ROPE_ADD                                      1  ~15     ~15, '%2F'
         26        ROPE_END                                      2  ~14     ~15, !2
         27        SEND_VAL_EX                                              ~14
         28        DO_FCALL                                      0          
         29      > JMP                                                      ->40
   17    30    >   BEGIN_SILENCE                                    ~18     
         31        INIT_FCALL_BY_NAME                                       'delete'
         32        ROPE_INIT                                     3  ~20     !0
         33        ROPE_ADD                                      1  ~20     ~20, '%2F'
         34        ROPE_END                                      2  ~19     ~20, !2
         35        SEND_VAL_EX                                              ~19
         36        DO_FCALL                                      0          
         37        END_SILENCE                                              ~18
         38      > JMP                                                      ->40
   19    39  E > > CATCH                                       last         'Exception'
   10    40    > > JMP                                                      ->10
         41    >   FE_FREE                                                  $7
   26    42    > > RETURN                                                   null

End of function zapfiles

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.72 ms | 1407 KiB | 18 Q