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'; //$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 ); ?>
Output for git.master, git.master_jit, rfc.property-hooks
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.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
67.4 ms | 401 KiB | 8 Q