3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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;
based on 324S6
Finding entry points
Branch analysis from position: 0
Jump 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                                               'openssl_encrypt'
         5        SEND_VAR                                                 !0
         6        SEND_VAR                                                 !1
         7        SEND_VAR                                                 !2
         8        SEND_VAL                                                 0
         9        SEND_VAR                                                 !3
        10        DO_ICALL                                         $10     
        11        ASSIGN                                                   !4, $10
   7    12        INIT_FCALL                                               'openssl_decrypt'
        13        SEND_VAR                                                 !4
        14        SEND_VAR                                                 !1
        15        SEND_VAR                                                 !2
        16        SEND_VAL                                                 0
        17        SEND_VAR                                                 !3
        18        DO_ICALL                                         $12     
        19        ASSIGN                                                   !5, $12
   8    20        ECHO                                                     !5
        21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0