3v4l.org

run code in 300+ PHP versions simultaneously
<?php $textToEncrypt = "5540"; $encryptionMethod = "aes-128-cbc"; $secretHash = "PYny9tcpR8KMilCybp4V"; $iv = "fgrgfvcfghtfdrfg"; $encryptedMessage = openssl_encrypt($textToEncrypt, $encryptionMethod, $secretHash, 0, $iv); $encryptedMessage = str_replace(' ', '+', $encryptedMessage); $encryptedMessage = str_replace(['/', '=', '+'], ['_', '', '*'], $encryptedMessage); echo 'Token for zone ' . $textToEncrypt . ' is ' . $encryptedMessage;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rp4LD
function name:  (null)
number of ops:  29
compiled vars:  !0 = $textToEncrypt, !1 = $encryptionMethod, !2 = $secretHash, !3 = $iv, !4 = $encryptedMessage
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '5540'
    3     1        ASSIGN                                                   !1, 'aes-128-cbc'
    4     2        ASSIGN                                                   !2, 'PYny9tcpR8KMilCybp4V'
    5     3        ASSIGN                                                   !3, 'fgrgfvcfghtfdrfg'
    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  $9      
         11        ASSIGN                                                   !4, $9
    7    12        INIT_FCALL                                               'str_replace'
         13        SEND_VAL                                                 '+'
         14        SEND_VAL                                                 '%2B'
         15        SEND_VAR                                                 !4
         16        DO_ICALL                                         $11     
         17        ASSIGN                                                   !4, $11
    9    18        INIT_FCALL                                               'str_replace'
         19        SEND_VAL                                                 <array>
         20        SEND_VAL                                                 <array>
         21        SEND_VAR                                                 !4
         22        DO_ICALL                                         $13     
         23        ASSIGN                                                   !4, $13
   11    24        CONCAT                                           ~15     'Token+for+zone+', !0
         25        CONCAT                                           ~16     ~15, '+is+'
         26        CONCAT                                           ~17     ~16, !4
         27        ECHO                                                     ~17
   12    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.18 ms | 1395 KiB | 15 Q