3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cfg = 'VkYp25A4ykSxCqTKbbX1sOtTVYsphcF6hJ4bIB88Sm2DKQ/LjbSAQTq9+5N3IzfHIwdOeEHRFmHyEGryWqBty1faQ7yAjpttVhyUG+D5y20DCpbNt9j8QyqyS8+KbMhXvX0BN3iLJpwih/yTCnWyYZFw2RZy05or+nI+72iHSQJNFdsCseHCuTMeZa0PidNmXU5l3ehDLnzutD8N5pc2UTyBC5g0TKNvwZwTS5H3y3mnZifFf7G/mq7PeyEE0Plniq51CrCAT0QyWFDc6VaRHHP0PyGI'; $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/93Us8
function name:  (null)
number of ops:  13
compiled vars:  !0 = $cfg, !1 = $key, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ASSIGN                                                   !0, 'VkYp25A4ykSxCqTKbbX1sOtTVYsphcF6hJ4bIB88Sm2DKQ%2FLjbSAQTq9%2B5N3IzfHIwdOeEHRFmHyEGryWqBty1faQ7yAjpttVhyUG%2BD5y20DCpbNt9j8QyqyS8%2BKbMhXvX0BN3iLJpwih%2FyTCnWyYZFw2RZy05or%2BnI%2B72iHSQJNFdsCseHCuTMeZa0PidNmXU5l3ehDLnzutD8N5pc2UTyBC5g0TKNvwZwTS5H3y3mnZifFf7G%2Fmq7PeyEE0Plniq51CrCAT0QyWFDc6VaRHHP0PyGI'
    4     1        ASSIGN                                                   !1, 'McdgJXfwR'
   16     2        INIT_FCALL                                               'string_cpt'
          3        INIT_FCALL                                               'base64_decode'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $5      
          6        SEND_VAR                                                 $5
          7        SEND_VAR                                                 !1
          8        DO_FCALL                                      0  $6      
          9        ASSIGN                                                   !2, $6
   17    10        CAST                                          6  ~8      !2
         11        ECHO                                                     ~8
   18    12      > RETURN                                                   1

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

End of function string_cpt

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.89 ms | 1403 KiB | 22 Q