3v4l.org

run code in 300+ PHP versions simultaneously
<?php $textToEncrypt = "hello"; $encryptionMethod = "AES-128-CBC"; $secretHash = "IGA"; $iv = "GPRODataGPROData"; $encryptedMessage = openssl_encrypt($textToEncrypt, $encryptionMethod, $secretHash, 0, $iv); $decryptedMessage = openssl_decrypt('XmyRqNhlTalkas4ccK6jIA==', $encryptionMethod, $secretHash, 0, $iv); echo $decryptedMessage;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tSpIX
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-128-CBC'
    4     2        ASSIGN                                                   !2, 'IGA'
    5     3        ASSIGN                                                   !3, 'GPRODataGPROData'
    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_VAL_EX                                              'XmyRqNhlTalkas4ccK6jIA%3D%3D'
         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:
157.78 ms | 1394 KiB | 13 Q