3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "This is a readable string"; $password = "<a href='mailto:p@ssword'>p@ssword</a>"; $method = "aes-256-cbc"; $encrypted = openssl_encrypt($string, $method, $password); echo "$string => $encrypted"; // Outputs: This is a readable string. => OeOiTWcgIPC1xIZaDJ3XTEaY/D4m1sQmxgPbzjxxlRA= $decrypted = openssl_decrypt($encrypted, $method, $password); echo "$encrypted => $decrypted"; // Outputs: OeOiTWcgIPC1xIZaDJ3XTEaY/D4m1sQmxgPbzjxxlRA= => This is a readable string. ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QFLJf
function name:  (null)
number of ops:  24
compiled vars:  !0 = $string, !1 = $password, !2 = $method, !3 = $encrypted, !4 = $decrypted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'This+is+a+readable+string'
    4     1        ASSIGN                                                   !1, '%3Ca+href%3D%27mailto%3Ap%40ssword%27%3Ep%40ssword%3C%2Fa%3E'
    5     2        ASSIGN                                                   !2, 'aes-256-cbc'
    7     3        INIT_FCALL_BY_NAME                                       'openssl_encrypt'
          4        SEND_VAR_EX                                              !0
          5        SEND_VAR_EX                                              !2
          6        SEND_VAR_EX                                              !1
          7        DO_FCALL                                      0  $8      
          8        ASSIGN                                                   !3, $8
    9     9        ROPE_INIT                                     3  ~11     !0
         10        ROPE_ADD                                      1  ~11     ~11, '+%3D%3E+'
         11        ROPE_END                                      2  ~10     ~11, !3
         12        ECHO                                                     ~10
   12    13        INIT_FCALL_BY_NAME                                       'openssl_decrypt'
         14        SEND_VAR_EX                                              !3
         15        SEND_VAR_EX                                              !2
         16        SEND_VAR_EX                                              !1
         17        DO_FCALL                                      0  $13     
         18        ASSIGN                                                   !4, $13
   13    19        ROPE_INIT                                     3  ~16     !3
         20        ROPE_ADD                                      1  ~16     ~16, '+%3D%3E+'
         21        ROPE_END                                      2  ~15     ~16, !4
         22        ECHO                                                     ~15
   15    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.42 ms | 1393 KiB | 13 Q