3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo openssl_cipher_iv_length('aes-256-gcm'); $secret="This is a secret message."; $key="d8b163deda806acaede2f807"; //echo $iv=openssl_random_pseudo_bytes(12); $iv = "0e42519c0eda67c22c52b605ff41fde395880ebf6ed40a560b5f5ecc8183d26a"; $method="aes-256-gcm"; $encrypted = "95b52983e7dfb2bac4cc11ed84644656dc6266674d58edb1750dfb8e2adf13c7"; //$encrypted=openssl_encrypt($secret,$method,$key,false,$iv); $decrypted=openssl_decrypt($encrypted,$method,$key,false,$iv); echo $encrypted; echo "<br>"; echo $decrypted;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L4nkH
function name:  (null)
number of ops:  21
compiled vars:  !0 = $secret, !1 = $key, !2 = $iv, !3 = $method, !4 = $encrypted, !5 = $decrypted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'openssl_cipher_iv_length'
          1        SEND_VAL_EX                                              'aes-256-gcm'
          2        DO_FCALL                                      0  $6      
          3        ECHO                                                     $6
    6     4        ASSIGN                                                   !0, 'This+is+a+secret+message.'
    7     5        ASSIGN                                                   !1, 'd8b163deda806acaede2f807'
    9     6        ASSIGN                                                   !2, '0e42519c0eda67c22c52b605ff41fde395880ebf6ed40a560b5f5ecc8183d26a'
   10     7        ASSIGN                                                   !3, 'aes-256-gcm'
   11     8        ASSIGN                                                   !4, '95b52983e7dfb2bac4cc11ed84644656dc6266674d58edb1750dfb8e2adf13c7'
   15     9        INIT_FCALL_BY_NAME                                       'openssl_decrypt'
         10        SEND_VAR_EX                                              !4
         11        SEND_VAR_EX                                              !3
         12        SEND_VAR_EX                                              !1
         13        SEND_VAL_EX                                              <false>
         14        SEND_VAR_EX                                              !2
         15        DO_FCALL                                      0  $12     
         16        ASSIGN                                                   !5, $12
   17    17        ECHO                                                     !4
   18    18        ECHO                                                     '%3Cbr%3E'
   19    19        ECHO                                                     !5
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.62 ms | 1394 KiB | 13 Q