3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decrypt($str, $key) { $iv = substr( md5("hacker",true), 0, 8 ); return mcrypt_decrypt( MCRYPT_BLOWFISH, $key, $str, MCRYPT_MODE_CBC, $iv ); } $Validation = "4/lOF/4ZMmdPxlFjZD63nA=="; $key = "e79c4da4f94b86cba5a81ba39fed083dbaf8bce5"; $msg = $text['felicitation'].decrypt(base64_decode($Validation),base64_encode($key)); echo "Le flag est: ".$msg; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NFZ8n
function name:  (null)
number of ops:  18
compiled vars:  !0 = $Validation, !1 = $key, !2 = $msg, !3 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, '4%2FlOF%2F4ZMmdPxlFjZD63nA%3D%3D'
    8     1        ASSIGN                                                   !1, 'e79c4da4f94b86cba5a81ba39fed083dbaf8bce5'
    9     2        FETCH_DIM_R                                      ~6      !3, 'felicitation'
          3        INIT_FCALL                                               'decrypt'
          4        INIT_FCALL                                               'base64_decode'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $7      
          7        SEND_VAR                                                 $7
          8        INIT_FCALL                                               'base64_encode'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $8      
         11        SEND_VAR                                                 $8
         12        DO_FCALL                                      0  $9      
         13        CONCAT                                           ~10     ~6, $9
         14        ASSIGN                                                   !2, ~10
   12    15        CONCAT                                           ~12     'Le+flag+est%3A+', !2
         16        ECHO                                                     ~12
   13    17      > RETURN                                                   1

Function decrypt:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NFZ8n
function name:  decrypt
number of ops:  23
compiled vars:  !0 = $str, !1 = $key, !2 = $iv
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        INIT_FCALL                                               'substr'
          3        INIT_FCALL                                               'md5'
          4        SEND_VAL                                                 'hacker'
          5        SEND_VAL                                                 <true>
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        SEND_VAL                                                 0
          9        SEND_VAL                                                 8
         10        DO_ICALL                                         $4      
         11        ASSIGN                                                   !2, $4
    4    12        INIT_FCALL_BY_NAME                                       'mcrypt_decrypt'
         13        FETCH_CONSTANT                                   ~6      'MCRYPT_BLOWFISH'
         14        SEND_VAL_EX                                              ~6
         15        SEND_VAR_EX                                              !1
         16        SEND_VAR_EX                                              !0
         17        FETCH_CONSTANT                                   ~7      'MCRYPT_MODE_CBC'
         18        SEND_VAL_EX                                              ~7
         19        SEND_VAR_EX                                              !2
         20        DO_FCALL                                      0  $8      
         21      > RETURN                                                   $8
    5    22*     > RETURN                                                   null

End of function decrypt

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.86 ms | 1402 KiB | 22 Q