3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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 ); ?>
based on 4DSqC
Output for 7.1.20, 7.2.6 - 7.3.0rc4
Fatal error: Uncaught Error: Call to undefined function openssl_decrypt() in /in/13jE7:13 Stack trace: #0 {main} thrown in /in/13jE7 on line 13
Process exited with code 255.
Output for 5.5.0 - 7.1.10, 7.2.0
Warning: openssl_decrypt(): IV passed is only 15 bytes long, cipher expects an IV of precisely 16 bytes, padding with \0 in /in/13jE7 on line 13 output