3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string_to_encrypt = <<<END This is a test There a new lines and "quotes" in here. I don't know whether this'll work! END; $password = '12345'; $iv = '1234512345'; $enc = openssl_encrypt($string_to_encrypt, 'AES-256-CBC', $password, 0, $iv); echo openssl_decrypt($enc, 'AES-256-CBC', 'AES-256-CBC', $password, 0, $iv);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XZdke
function name:  (null)
number of ops:  21
compiled vars:  !0 = $string_to_encrypt, !1 = $password, !2 = $iv, !3 = $enc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'This+is+a+test%0A%0AThere+a+new+lines+and+%22quotes%22+in+here.%0A%0AI+don%27t+know+whether+this%27ll+work%21'
   10     1        ASSIGN                                                   !1, '12345'
   11     2        ASSIGN                                                   !2, '1234512345'
   13     3        INIT_FCALL_BY_NAME                                       'openssl_encrypt'
          4        SEND_VAR_EX                                              !0
          5        SEND_VAL_EX                                              'AES-256-CBC'
          6        SEND_VAR_EX                                              !1
          7        SEND_VAL_EX                                              0
          8        SEND_VAR_EX                                              !2
          9        DO_FCALL                                      0  $7      
         10        ASSIGN                                                   !3, $7
   15    11        INIT_FCALL_BY_NAME                                       'openssl_decrypt'
         12        SEND_VAR_EX                                              !3
         13        SEND_VAL_EX                                              'AES-256-CBC'
         14        SEND_VAL_EX                                              'AES-256-CBC'
         15        SEND_VAR_EX                                              !1
         16        SEND_VAL_EX                                              0
         17        SEND_VAR_EX                                              !2
         18        DO_FCALL                                      0  $9      
         19        ECHO                                                     $9
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.36 ms | 1394 KiB | 13 Q