3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( bin2hex(mcrypt_encrypt(MCRYPT_DES, 'key12345', 'data'."\1", MCRYPT_MODE_ECB, '')), bin2hex(openssl_encrypt('data', 'des-ecb', 'key12345', OPENSSL_RAW_DATA, '')) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7uJHg
function name:  (null)
number of ops:  28
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
    4     1        INIT_FCALL                                               'bin2hex'
          2        INIT_FCALL_BY_NAME                                       'mcrypt_encrypt'
          3        FETCH_CONSTANT                                   ~0      'MCRYPT_DES'
          4        SEND_VAL_EX                                              ~0
          5        SEND_VAL_EX                                              'key12345'
          6        SEND_VAL_EX                                              'data%01'
          7        FETCH_CONSTANT                                   ~1      'MCRYPT_MODE_ECB'
          8        SEND_VAL_EX                                              ~1
          9        SEND_VAL_EX                                              ''
         10        DO_FCALL                                      0  $2      
         11        SEND_VAR                                                 $2
         12        DO_ICALL                                         $3      
         13        SEND_VAR                                                 $3
    5    14        INIT_FCALL                                               'bin2hex'
         15        INIT_FCALL_BY_NAME                                       'openssl_encrypt'
         16        SEND_VAL_EX                                              'data'
         17        SEND_VAL_EX                                              'des-ecb'
         18        SEND_VAL_EX                                              'key12345'
         19        FETCH_CONSTANT                                   ~4      'OPENSSL_RAW_DATA'
         20        SEND_VAL_EX                                              ~4
         21        SEND_VAL_EX                                              ''
         22        DO_FCALL                                      0  $5      
         23        SEND_VAR                                                 $5
         24        DO_ICALL                                         $6      
         25        SEND_VAR                                                 $6
         26        DO_ICALL                                                 
    6    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
207.88 ms | 1400 KiB | 17 Q