3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decryptPwd($encryptedPwd){ $data = $encryptedPwd; $key = 'secret passphrase to encrypt'; $cipher = "rijndael-256"; $mode = "cbc"; return (string) mcrypt_decrypt( $cipher, substr(md5($key),0,mcrypt_get_key_size($cipher, $mode)), base64_decode($data), $mode, substr(md5($key),0,mcrypt_get_block_size($cipher, $mode)) ); } decryptPwd("ceSiAr7JzY8e/9mSj15ZV1Wu34ECYp+S5EZTpZcFpF4=");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GL6B1
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_FCALL                                               'decryptpwd'
          1        SEND_VAL                                                 'ceSiAr7JzY8e%2F9mSj15ZV1Wu34ECYp%2BS5EZTpZcFpF4%3D'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

Function decryptpwd:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GL6B1
function name:  decryptPwd
number of ops:  42
compiled vars:  !0 = $encryptedPwd, !1 = $data, !2 = $key, !3 = $cipher, !4 = $mode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ASSIGN                                                   !1, !0
    4     2        ASSIGN                                                   !2, 'secret+passphrase+to+encrypt'
    5     3        ASSIGN                                                   !3, 'rijndael-256'
    6     4        ASSIGN                                                   !4, 'cbc'
    9     5        INIT_FCALL_BY_NAME                                       'mcrypt_decrypt'
   10     6        SEND_VAR_EX                                              !3
   11     7        INIT_FCALL                                               'substr'
          8        INIT_FCALL                                               'md5'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $9      
         11        SEND_VAR                                                 $9
         12        SEND_VAL                                                 0
         13        INIT_FCALL_BY_NAME                                       'mcrypt_get_key_size'
         14        SEND_VAR_EX                                              !3
         15        SEND_VAR_EX                                              !4
         16        DO_FCALL                                      0  $10     
         17        SEND_VAR                                                 $10
         18        DO_ICALL                                         $11     
         19        SEND_VAR_NO_REF_EX                                       $11
   12    20        INIT_FCALL                                               'base64_decode'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $12     
         23        SEND_VAR_NO_REF_EX                                       $12
   10    24        SEND_VAR_EX                                              !4
   14    25        INIT_FCALL                                               'substr'
         26        INIT_FCALL                                               'md5'
         27        SEND_VAR                                                 !2
         28        DO_ICALL                                         $13     
         29        SEND_VAR                                                 $13
         30        SEND_VAL                                                 0
         31        INIT_FCALL_BY_NAME                                       'mcrypt_get_block_size'
         32        SEND_VAR_EX                                              !3
         33        SEND_VAR_EX                                              !4
         34        DO_FCALL                                      0  $14     
         35        SEND_VAR                                                 $14
         36        DO_ICALL                                         $15     
         37        SEND_VAR_NO_REF_EX                                       $15
         38        DO_FCALL                                      0  $16     
         39        CAST                                          6  ~17     $16
         40      > RETURN                                                   ~17
   16    41*     > RETURN                                                   null

End of function decryptpwd

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.85 ms | 1394 KiB | 20 Q