3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = McdgJXfwR; function string_cpt($String, $Password) { $Salt = vQfLb; $StrLen = strlen($String); $Seq = $Password; $Gamma = ''; while (strlen($Gamma) < $StrLen) { $Seq = pack('H*', sha1($Gamma . $Seq . $Salt)); $Gamma.= substr($Seq, 0, 8); } return $String ^ $Gamma; } $c = string_cpt(base64_decode($cfg), $key); print "$c"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vRS5P
function name:  (null)
number of ops:  13
compiled vars:  !0 = $key, !1 = $c, !2 = $cfg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_CONSTANT                                   ~3      'McdgJXfwR'
          1        ASSIGN                                                   !0, ~3
   15     2        INIT_FCALL                                               'string_cpt'
          3        INIT_FCALL                                               'base64_decode'
          4        SEND_VAR                                                 !2
          5        DO_ICALL                                         $5      
          6        SEND_VAR                                                 $5
          7        SEND_VAR                                                 !0
          8        DO_FCALL                                      0  $6      
          9        ASSIGN                                                   !1, $6
   16    10        CAST                                          6  ~8      !1
         11        ECHO                                                     ~8
   17    12      > RETURN                                                   1

Function string_cpt:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 9
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 9
Branch analysis from position: 28
Branch analysis from position: 9
filename:       /in/vRS5P
function name:  string_cpt
number of ops:  31
compiled vars:  !0 = $String, !1 = $Password, !2 = $Salt, !3 = $StrLen, !4 = $Seq, !5 = $Gamma
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        FETCH_CONSTANT                                   ~6      'vQfLb'
          3        ASSIGN                                                   !2, ~6
    6     4        STRLEN                                           ~8      !0
          5        ASSIGN                                                   !3, ~8
    7     6        ASSIGN                                                   !4, !1
    8     7        ASSIGN                                                   !5, ''
    9     8      > JMP                                                      ->25
   10     9    >   INIT_FCALL                                               'pack'
         10        SEND_VAL                                                 'H%2A'
         11        INIT_FCALL                                               'sha1'
         12        CONCAT                                           ~12     !5, !4
         13        CONCAT                                           ~13     ~12, !2
         14        SEND_VAL                                                 ~13
         15        DO_ICALL                                         $14     
         16        SEND_VAR                                                 $14
         17        DO_ICALL                                         $15     
         18        ASSIGN                                                   !4, $15
   11    19        INIT_FCALL                                               'substr'
         20        SEND_VAR                                                 !4
         21        SEND_VAL                                                 0
         22        SEND_VAL                                                 8
         23        DO_ICALL                                         $17     
         24        ASSIGN_OP                                     8          !5, $17
    9    25    >   STRLEN                                           ~19     !5
         26        IS_SMALLER                                               ~19, !3
         27      > JMPNZ                                                    ~20, ->9
   13    28    >   BW_XOR                                           ~21     !0, !5
         29      > RETURN                                                   ~21
   14    30*     > RETURN                                                   null

End of function string_cpt

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.6 ms | 1402 KiB | 22 Q