3v4l.org

run code in 300+ PHP versions simultaneously
<?php function pkcs7_pad($data, $size) { $length = $size - strlen($data) % $size; return $data . str_repeat(chr($length), $length); } $encrypted = "5c7Zms7hW3y4e4gOCOjzfg=="; $key ='glop'; //echo mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, base64_decode($encrypted), MCRYPT_MODE_CFB, $iv); //echo mcrypt_decrypt(MCRYPT_RIJNDAEL_128, str_pad($key, 32, chr(0), STR_PAD_RIGHT), base64_decode($encrypted), MCRYPT_MODE_CBC, str_pad($iv, 16, chr(0), STR_PAD_RIGHT)); $bla= openssl_decrypt($encrypted , 'aes-192-cfb8' , $key); echo $bla ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I59K2
function name:  (null)
number of ops:  10
compiled vars:  !0 = $encrypted, !1 = $key, !2 = $bla
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, '5c7Zms7hW3y4e4gOCOjzfg%3D%3D'
   12     1        ASSIGN                                                   !1, 'glop'
   16     2        INIT_FCALL_BY_NAME                                       'openssl_decrypt'
          3        SEND_VAR_EX                                              !0
          4        SEND_VAL_EX                                              'aes-192-cfb8'
          5        SEND_VAR_EX                                              !1
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                                   !2, $5
   17     8        ECHO                                                     !2
   21     9      > RETURN                                                   1

Function pkcs7_pad:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/I59K2
function name:  pkcs7_pad
number of ops:  16
compiled vars:  !0 = $data, !1 = $size, !2 = $length
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        STRLEN                                           ~3      !0
          3        MOD                                              ~4      ~3, !1
          4        SUB                                              ~5      !1, ~4
          5        ASSIGN                                                   !2, ~5
    6     6        INIT_FCALL                                               'str_repeat'
          7        INIT_FCALL                                               'chr'
          8        SEND_VAR                                                 !2
          9        DO_ICALL                                         $7      
         10        SEND_VAR                                                 $7
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $8      
         13        CONCAT                                           ~9      !0, $8
         14      > RETURN                                                   ~9
    7    15*     > RETURN                                                   null

End of function pkcs7_pad

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.06 ms | 1395 KiB | 17 Q