3v4l.org

run code in 300+ PHP versions simultaneously
<?php $textToEncrypt = "hello"; $encryptionMethod = "aes-256-cbc"; $secretHash = "123455"; $iv = "1234567890122354"; $encryptedMessage = openssl_encrypt($textToEncrypt, $encryptionMethod, $secretHash, 0, $iv); var_dump($encryptedMessage); $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/WHQAa
function name:  (null)
number of ops:  25
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, '1234567890122354'
    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                                               'var_dump'
         13        SEND_VAR                                                 !4
         14        DO_ICALL                                                 
    8    15        INIT_FCALL_BY_NAME                                       'openssl_decrypt'
         16        SEND_VAR_EX                                              !4
         17        SEND_VAR_EX                                              !1
         18        SEND_VAR_EX                                              !2
         19        SEND_VAL_EX                                              0
         20        SEND_VAR_EX                                              !3
         21        DO_FCALL                                      0  $13     
         22        ASSIGN                                                   !5, $13
    9    23        ECHO                                                     !5
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.57 ms | 1395 KiB | 15 Q