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 = "AWPNfurpnp67Mge0WInMxw=="; $key ='SinigangNaManokMayHalongBaboy'; $iv = 'SinigangNaBaboy'; //echo mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, base64_decode($encrypted), MCRYPT_MODE_CFB, $iv); echo 'output'. openssl_decrypt (base64_decode($encrypted) , 'aes-128-cbc' , $key , 0 , $iv ); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/13jE7
function name:  (null)
number of ops:  16
compiled vars:  !0 = $encrypted, !1 = $key, !2 = $iv
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ASSIGN                                                   !0, 'AWPNfurpnp67Mge0WInMxw%3D%3D'
   10     1        ASSIGN                                                   !1, 'SinigangNaManokMayHalongBaboy'
   11     2        ASSIGN                                                   !2, 'SinigangNaBaboy'
   13     3        INIT_FCALL_BY_NAME                                       'openssl_decrypt'
          4        INIT_FCALL                                               'base64_decode'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $6      
          7        SEND_VAR_NO_REF_EX                                       $6
          8        SEND_VAL_EX                                              'aes-128-cbc'
          9        SEND_VAR_EX                                              !1
         10        SEND_VAL_EX                                              0
         11        SEND_VAR_EX                                              !2
         12        DO_FCALL                                      0  $7      
         13        CONCAT                                           ~8      'output', $7
         14        ECHO                                                     ~8
   15    15      > RETURN                                                   1

Function pkcs7_pad:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/13jE7
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:
161 ms | 1388 KiB | 19 Q