3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 'FSHcT+sfRO/siok2ooweuA=='; $key = base64_decode($key); $message = 'I want to decode this'; $iv = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM); $iv = '3030303030303030' print $iv.'<p>'; $encrypted = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $message, MCRYPT_MODE_CBC, $iv); $decrypted = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $encrypted, MCRYPT_MODE_CBC, $iv); print base64_encode($encrypted); ?>
Output for 5.4.8 - 5.4.45, 5.5.24 - 5.5.29, 5.6.8 - 5.6.13
Parse error: syntax error, unexpected 'print' (T_PRINT) in /in/c4E1r on line 9
Process exited with code 255.

preferences:
179.54 ms | 1395 KiB | 56 Q