3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cc = 'my secret text'; $key = 'my secret key'; $iv = '12345678'; $cipher = mcrypt_module_open(MCRYPT_BLOWFISH,'','cbc',''); mcrypt_generic_init($cipher, $key, $iv); $encrypted = mcrypt_generic($cipher,$cc); mcrypt_generic_deinit($cipher); mcrypt_generic_init($cipher, $key, $iv); $decrypted = mdecrypt_generic($cipher,$encrypted); mcrypt_generic_deinit($cipher); echo "encrypted : ".$encrypted; echo "<br>"; echo "decrypted : ".$decrypted;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iOSKY
function name:  (null)
number of ops:  43
compiled vars:  !0 = $cc, !1 = $key, !2 = $iv, !3 = $cipher, !4 = $encrypted, !5 = $decrypted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'my+secret+text'
    3     1        ASSIGN                                                   !1, 'my+secret+key'
    4     2        ASSIGN                                                   !2, '12345678'
    6     3        INIT_FCALL_BY_NAME                                       'mcrypt_module_open'
          4        FETCH_CONSTANT                                   ~9      'MCRYPT_BLOWFISH'
          5        SEND_VAL_EX                                              ~9
          6        SEND_VAL_EX                                              ''
          7        SEND_VAL_EX                                              'cbc'
          8        SEND_VAL_EX                                              ''
          9        DO_FCALL                                      0  $10     
         10        ASSIGN                                                   !3, $10
    8    11        INIT_FCALL_BY_NAME                                       'mcrypt_generic_init'
         12        SEND_VAR_EX                                              !3
         13        SEND_VAR_EX                                              !1
         14        SEND_VAR_EX                                              !2
         15        DO_FCALL                                      0          
    9    16        INIT_FCALL_BY_NAME                                       'mcrypt_generic'
         17        SEND_VAR_EX                                              !3
         18        SEND_VAR_EX                                              !0
         19        DO_FCALL                                      0  $13     
         20        ASSIGN                                                   !4, $13
   10    21        INIT_FCALL_BY_NAME                                       'mcrypt_generic_deinit'
         22        SEND_VAR_EX                                              !3
         23        DO_FCALL                                      0          
   12    24        INIT_FCALL_BY_NAME                                       'mcrypt_generic_init'
         25        SEND_VAR_EX                                              !3
         26        SEND_VAR_EX                                              !1
         27        SEND_VAR_EX                                              !2
         28        DO_FCALL                                      0          
   13    29        INIT_FCALL_BY_NAME                                       'mdecrypt_generic'
         30        SEND_VAR_EX                                              !3
         31        SEND_VAR_EX                                              !4
         32        DO_FCALL                                      0  $17     
         33        ASSIGN                                                   !5, $17
   14    34        INIT_FCALL_BY_NAME                                       'mcrypt_generic_deinit'
         35        SEND_VAR_EX                                              !3
         36        DO_FCALL                                      0          
   16    37        CONCAT                                           ~20     'encrypted+%3A+', !4
         38        ECHO                                                     ~20
   17    39        ECHO                                                     '%3Cbr%3E'
   18    40        CONCAT                                           ~21     'decrypted+%3A+', !5
         41        ECHO                                                     ~21
         42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.22 ms | 1395 KiB | 13 Q