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'; //$key = hash('MD5', $key, true); //$iv = hash('MD5', $iv, true); $key = pack('a32', $key); $iv = pack('a16', $iv); echo $key; echo mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, base64_decode($encrypted), MCRYPT_MODE_CBC, $iv); 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)); //echo 'output'. openssl_decrypt (base64_decode($encrypted) , 'aes-256-cbc' , $key , OPENSSL_RAW_DATA , $iv ); //echo 'output'. openssl_decrypt (base64_decode($encrypted) , 'aes-256-cbc' , $key , OPENSSL_ZERO_PADDING , $iv ); ?>
based on kF1gr
Output for 7.0.6 - 7.2.11
SinigangNaManokMayHalongBaboy Fatal error: Uncaught Error: Call to undefined function mcrypt_decrypt() in /in/67nsd:22 Stack trace: #0 {main} thrown in /in/67nsd on line 22
Process exited with code 255.
Output for 5.5.0 - 5.5.34, 5.6.0 - 5.6.20, 7.0.0 - 7.0.5
SinigangNaManokMayHalongBaboy��b@J�W�O�sT9��;�K/=�`�y'��
Output for 5.5.35 - 5.5.36, 5.6.21 - 5.6.28
SinigangNaManokMayHalongBaboy Fatal error: Call to undefined function mcrypt_decrypt() in /in/67nsd on line 22
Process exited with code 255.