3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $kdmember = "7001644103"; $key = pack('H*', "7A40903624D1AB215FAA4A3E26EB32D7832A0358CDA3B23F7C4D4F4F767BE413"); $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC); $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); $ciphertext = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $kdmember, MCRYPT_MODE_CBC, $iv); $ciphertext = $iv . $ciphertext; $ciphertext_base64 = base64_encode($ciphertext); echo urlencode($ciphertext_base64);
based on Cds7e
Output for 7.0.6 - 7.3.0rc4
Fatal error: Uncaught Error: Call to undefined function mcrypt_get_iv_size() in /in/JD0Gm:5 Stack trace: #0 {main} thrown in /in/JD0Gm on line 5
Process exited with code 255.
Output for 7.0.5
TcxiQV8%2BW1oHiYKb21QcGGpQyF%2BNzCIe9enf5ikZlh4%3D
Output for 7.0.4
Aidz%2Bbj%2B2EWopERNjGxlYjSCb8P6YP6shLBe7QTQOQE%3D
Output for 7.0.3
y3gFbvnXtk0S6%2F7d5VsARebzqLjMer5TnG5Xb1G7sIo%3D
Output for 7.0.2
r9vmppj0e69ilNWE9pLkEGVa8t4dtUhQD79oOrT%2B%2B48%3D
Output for 7.0.1
qI8pZLtjbjBkQS9ate%2FaSdGFhxK6wUMNlen1bWWq4YU%3D
Output for 7.0.0
CjlfVB7vreaAZ7ZtMvPZIEc%2BKPbK6WPZFxTKU7EC%2FKw%3D
Output for 5.6.21 - 5.6.24
Fatal error: Call to undefined function mcrypt_get_iv_size() in /in/JD0Gm on line 5
Process exited with code 255.
Output for 5.6.20
%2FkHFtjYqq%2BsOuqd2uInSOmoXygNiuoWljObp5wzjyFE%3D
Output for 5.6.19
LH7k4HQ52SC8t5ByGfr0cZU2m%2FfkZWtf1tGreaR46YE%3D
Output for 5.6.18
%2BKESQvgkoNWUhm5mN9Jl203QKwxYcW3ngwACm9YJiUY%3D
Output for 5.6.17
NoDd2DrI5kRzzly7Twgs0KuqSAhVM9k7E%2BmIA5z1k4E%3D
Output for 5.6.16
BfFY6%2BLuMEkMoPMnsG5pnZFSm%2BUi0hbSOuP4dF6WXfY%3D
Output for 5.6.15
mMVWD0dLXf0N%2BJo1KxCtFchbD7uXrVPfLcSK8Uj73rM%3D
Output for 5.6.14
CHquydzgVe%2FzmC%2FMDg%2B5n7Ti0Sue6GjmesgYDvcRsME%3D
Output for 5.6.13
7tEuYPm5%2FSUlmSMW%2FWm3htbWvX9zSo1TMvhalWdLDWs%3D
Output for 5.6.12
J6nfXhawLIC3UDHDs8NzaMb5cju4MXihjKmnF3AaKgk%3D
Output for 5.6.11
VP4SVKOKtk31apS6zvRUbWZs8K2LWasmNzoN2hBRnZ4%3D
Output for 5.6.10
1xIg3Hscb5odiaGLRF7KvJp5ebzuCsakP7g2mnYWdWI%3D
Output for 5.6.9
CJ6lXWCx%2BjdM%2FbDKhz%2F8bigN2A1pZwGRC8RTK268ivk%3D
Output for 5.6.8
FSd%2FRvr3IQDPcy5r8bcKBDOkYBG3yfTI6owP6uAOQt8%3D
Output for 5.6.7
GYuyII2Srg0hvmyXLJYoce4t9PY8%2FQGJDwRQPDJeKUw%3D
Output for 5.6.6
Ov1R2VxY4KbUp5twgjTUYEUSPPeVBhHUGjovzLeVvbw%3D
Output for 5.6.5
4uKK2mFd9mzmJm8Mh%2BAi516rDIY%2B%2BjZqS5eLcuJDKKg%3D
Output for 5.6.4
204D3Oe7xv6jn4uOzgeXTpYOK5Ivv0sCUsse4yET8ls%3D
Output for 5.6.3
MXasttjQ6BH5fMvqvFDvnVFTbmYD1t5zGCn%2FWxeQrj0%3D
Output for 5.6.2
S%2F7mJso%2Fmu97W6CLJtwXow6l1K83Ht%2FxklXKQ1t2o9E%3D
Output for 5.6.1
dpHnzNhkKzcgEgzOAWp1FF2g%2FErmQOX0JqigAOZfpMs%3D
Output for 5.6.0
wmveyDbCISmH1YXA2O%2FOddzNWicNvNnaI7vjJZMwGrQ%3D