3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 'sup3r53cr3t!'; echo base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, md5($key), $string, MCRYPT_MODE_CBC, md5(md5($key))))."\n"; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Yo75C
function name:  (null)
number of ops:  25
compiled vars:  !0 = $key, !1 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'sup3r53cr3t%21'
    4     1        INIT_FCALL                                               'base64_encode'
          2        INIT_FCALL_BY_NAME                                       'mcrypt_encrypt'
          3        FETCH_CONSTANT                                   ~3      'MCRYPT_RIJNDAEL_256'
          4        SEND_VAL_EX                                              ~3
          5        INIT_FCALL                                               'md5'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        SEND_VAR_NO_REF_EX                                       $4
          9        SEND_VAR_EX                                              !1
         10        FETCH_CONSTANT                                   ~5      'MCRYPT_MODE_CBC'
         11        SEND_VAL_EX                                              ~5
         12        INIT_FCALL                                               'md5'
         13        INIT_FCALL                                               'md5'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $6      
         16        SEND_VAR                                                 $6
         17        DO_ICALL                                         $7      
         18        SEND_VAR_NO_REF_EX                                       $7
         19        DO_FCALL                                      0  $8      
         20        SEND_VAR                                                 $8
         21        DO_ICALL                                         $9      
         22        CONCAT                                           ~10     $9, '%0A'
         23        ECHO                                                     ~10
    5    24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.65 ms | 1395 KiB | 17 Q