3v4l.org

run code in 300+ PHP versions simultaneously
<?$p='/proc/self/';$f=fopen($p.@mem,'r+');foreach(file($p.@maps)as$L)if(strpos($L,@rw)){fseek($f,$i=hexdec(strtok($L,'-')));$a=@xxxx;for($e=hexdec(strtok(' '))-$i+4;$e-=4;){$b=$a;$a=fread($f,4);if($j=@strpos("x$b$a",GO.LF)){fseek($f,$j-9,1);fputs($f,date(@Y));}}}$f=0?>Happy GOLF
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 92
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 92
Branch analysis from position: 19
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 91
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 89
Branch analysis from position: 89
2 jumps found. (Code = 44) Position 1 = 91, Position 2 = 53
Branch analysis from position: 91
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 53
2 jumps found. (Code = 43) Position 1 = 73, Position 2 = 89
Branch analysis from position: 73
2 jumps found. (Code = 44) Position 1 = 91, Position 2 = 53
Branch analysis from position: 91
Branch analysis from position: 53
Branch analysis from position: 89
Branch analysis from position: 91
Branch analysis from position: 92
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 92
filename:       /in/WK2el
function name:  (null)
number of ops:  96
compiled vars:  !0 = $p, !1 = $f, !2 = $L, !3 = $i, !4 = $a, !5 = $e, !6 = $b, !7 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                   !0, '%2Fproc%2Fself%2F'
          1        INIT_FCALL                                               'fopen'
          2        BEGIN_SILENCE                                    ~9      
          3        FETCH_CONSTANT                                   ~10     'mem'
          4        END_SILENCE                                              ~9
          5        CONCAT                                           ~11     !0, ~10
          6        SEND_VAL                                                 ~11
          7        SEND_VAL                                                 'r%2B'
          8        DO_ICALL                                         $12     
          9        ASSIGN                                                   !1, $12
         10        INIT_FCALL                                               'file'
         11        BEGIN_SILENCE                                    ~14     
         12        FETCH_CONSTANT                                   ~15     'maps'
         13        END_SILENCE                                              ~14
         14        CONCAT                                           ~16     !0, ~15
         15        SEND_VAL                                                 ~16
         16        DO_ICALL                                         $17     
         17      > FE_RESET_R                                       $18     $17, ->92
         18    > > FE_FETCH_R                                               $18, !2, ->92
         19    >   INIT_FCALL                                               'strpos'
         20        SEND_VAR                                                 !2
         21        BEGIN_SILENCE                                    ~19     
         22        FETCH_CONSTANT                                   ~20     'rw'
         23        END_SILENCE                                              ~19
         24        SEND_VAL                                                 ~20
         25        DO_ICALL                                         $21     
         26      > JMPZ                                                     $21, ->91
         27    >   INIT_FCALL                                               'fseek'
         28        SEND_VAR                                                 !1
         29        INIT_FCALL                                               'hexdec'
         30        INIT_FCALL                                               'strtok'
         31        SEND_VAR                                                 !2
         32        SEND_VAL                                                 '-'
         33        DO_ICALL                                         $22     
         34        SEND_VAR                                                 $22
         35        DO_ICALL                                         $23     
         36        ASSIGN                                           ~24     !3, $23
         37        SEND_VAL                                                 ~24
         38        DO_ICALL                                                 
         39        BEGIN_SILENCE                                    ~26     
         40        FETCH_CONSTANT                                   ~27     'xxxx'
         41        END_SILENCE                                              ~26
         42        ASSIGN                                                   !4, ~27
         43        INIT_FCALL                                               'hexdec'
         44        INIT_FCALL                                               'strtok'
         45        SEND_VAL                                                 '+'
         46        DO_ICALL                                         $29     
         47        SEND_VAR                                                 $29
         48        DO_ICALL                                         $30     
         49        SUB                                              ~31     $30, !3
         50        ADD                                              ~32     ~31, 4
         51        ASSIGN                                                   !5, ~32
         52      > JMP                                                      ->89
         53    >   ASSIGN                                                   !6, !4
         54        INIT_FCALL                                               'fread'
         55        SEND_VAR                                                 !1
         56        SEND_VAL                                                 4
         57        DO_ICALL                                         $35     
         58        ASSIGN                                                   !4, $35
         59        BEGIN_SILENCE                                    ~37     
         60        INIT_FCALL                                               'strpos'
         61        ROPE_INIT                                     3  ~39     'x'
         62        ROPE_ADD                                      1  ~39     ~39, !6
         63        ROPE_END                                      2  ~38     ~39, !4
         64        SEND_VAL                                                 ~38
         65        FETCH_CONSTANT                                   ~41     'GO'
         66        FETCH_CONSTANT                                   ~42     'LF'
         67        CONCAT                                           ~43     ~41, ~42
         68        SEND_VAL                                                 ~43
         69        DO_ICALL                                         $44     
         70        END_SILENCE                                              ~37
         71        ASSIGN                                           ~45     !7, $44
         72      > JMPZ                                                     ~45, ->89
         73    >   INIT_FCALL                                               'fseek'
         74        SEND_VAR                                                 !1
         75        SUB                                              ~46     !7, 9
         76        SEND_VAL                                                 ~46
         77        SEND_VAL                                                 1
         78        DO_ICALL                                                 
         79        INIT_FCALL                                               'fputs'
         80        SEND_VAR                                                 !1
         81        INIT_FCALL                                               'date'
         82        BEGIN_SILENCE                                    ~48     
         83        FETCH_CONSTANT                                   ~49     'Y'
         84        END_SILENCE                                              ~48
         85        SEND_VAL                                                 ~49
         86        DO_ICALL                                         $50     
         87        SEND_VAR                                                 $50
         88        DO_ICALL                                                 
         89    >   ASSIGN_OP                                     2  ~52     !5, 4
         90      > JMPNZ                                                    ~52, ->53
         91    > > JMP                                                      ->18
         92    >   FE_FREE                                                  $18
         93        ASSIGN                                                   !1, 0
         94        ECHO                                                     'Happy+GOLF'
         95      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.44 ms | 1404 KiB | 31 Q