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 = "WDRCB0AwVYg3N\\/2jvlgDlTJZYAznYLr+vU54nwhGH5g=="; $key ='5R3ylIdJ46Z8hT+2rf0z49PaNWs1x5vdAmfEcsi0OEc='; $iv = '\\/LOPJKsZxW\\/Qp1UXfHV\\/ig=='; echo 'output'. openssl_decrypt (base64_decode($encrypted) , 'aes-256-cbc' , base64_decode($key) , 0 , base64_decode($iv));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OV8r9
function name:  (null)
number of ops:  22
compiled vars:  !0 = $encrypted, !1 = $key, !2 = $iv
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ASSIGN                                                   !0, 'WDRCB0AwVYg3N%5C%2F2jvlgDlTJZYAznYLr%2BvU54nwhGH5g%3D%3D'
   12     1        ASSIGN                                                   !1, '5R3ylIdJ46Z8hT%2B2rf0z49PaNWs1x5vdAmfEcsi0OEc%3D'
   13     2        ASSIGN                                                   !2, '%5C%2FLOPJKsZxW%5C%2FQp1UXfHV%5C%2Fig%3D%3D'
   15     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-256-cbc'
          9        INIT_FCALL                                               'base64_decode'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $7      
         12        SEND_VAR_NO_REF_EX                                       $7
         13        SEND_VAL_EX                                              0
         14        INIT_FCALL                                               'base64_decode'
         15        SEND_VAR                                                 !2
         16        DO_ICALL                                         $8      
         17        SEND_VAR_NO_REF_EX                                       $8
         18        DO_FCALL                                      0  $9      
         19        CONCAT                                           ~10     'output', $9
         20        ECHO                                                     ~10
         21      > RETURN                                                   1

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