3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php const CIPHER = MCRYPT_RIJNDAEL_128; const KEY_BYTE_SIZE = 16; const CIPHER_MODE = 'cbc'; const HASH_FUNCTION = 'sha256'; const MAC_BYTE_SIZE = 32; const ENCRYPTION_INFO = 'PIPS|KeyForEncryption'; const AUTHENTICATION_INFO = 'PIPS|KeyForAuthentication'; $x = hash_hmac("sha256", "blah", "It is a kitten", false); print $x; ?>
Output for 7.2.0
Warning: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' (this will throw an Error in a future version of PHP) in /in/BiHt1 on line 3 4c079ad7bfe2df45adefb3266b7bba8569fa0c34838b308551b4fc93b457ff2a
Output for 5.3.19 - 5.3.29, 5.5.35, 5.6.21 - 5.6.28, 7.0.6 - 7.1.10
Notice: Use of undefined constant MCRYPT_RIJNDAEL_128 - assumed 'MCRYPT_RIJNDAEL_128' in /in/BiHt1 on line 3 4c079ad7bfe2df45adefb3266b7bba8569fa0c34838b308551b4fc93b457ff2a
Output for 5.4.9 - 5.5.34, 5.6.8 - 5.6.20, 7.0.0 - 7.0.5
4c079ad7bfe2df45adefb3266b7bba8569fa0c34838b308551b4fc93b457ff2a