3v4l.org

run code in 300+ PHP versions simultaneously
<?php $textToEncrypt = "hello"; $encryptionMethod = "aes-256-cbc"; $secretHash = "123455"; $iv = "1234567890123456"; $encryptedMessage = openssl_encrypt($textToEncrypt, $encryptionMethod, $secretHash, 0, $iv); $decryptedMessage = openssl_decrypt($encryptedMessage, $encryptionMethod, $secretHash, 0, $iv); echo $decryptedMessage;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AWkW0
function name:  (null)
number of ops:  22
compiled vars:  !0 = $textToEncrypt, !1 = $encryptionMethod, !2 = $secretHash, !3 = $iv, !4 = $encryptedMessage, !5 = $decryptedMessage
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'hello'
    3     1        ASSIGN                                                   !1, 'aes-256-cbc'
    4     2        ASSIGN                                                   !2, '123455'
    5     3        ASSIGN                                                   !3, '1234567890123456'
    6     4        INIT_FCALL_BY_NAME                                       'openssl_encrypt'
          5        SEND_VAR_EX                                              !0
          6        SEND_VAR_EX                                              !1
          7        SEND_VAR_EX                                              !2
          8        SEND_VAL_EX                                              0
          9        SEND_VAR_EX                                              !3
         10        DO_FCALL                                      0  $10     
         11        ASSIGN                                                   !4, $10
    7    12        INIT_FCALL_BY_NAME                                       'openssl_decrypt'
         13        SEND_VAR_EX                                              !4
         14        SEND_VAR_EX                                              !1
         15        SEND_VAR_EX                                              !2
         16        SEND_VAL_EX                                              0
         17        SEND_VAR_EX                                              !3
         18        DO_FCALL                                      0  $12     
         19        ASSIGN                                                   !5, $12
    8    20        ECHO                                                     !5
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.2 ms | 1385 KiB | 13 Q