3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $kdmember = "7000988593"; $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 65Ipr
Output for 7.1.0 - 7.3.0alpha1
Fatal error: Uncaught Error: Call to undefined function mcrypt_get_iv_size() in /in/lEiJY:5 Stack trace: #0 {main} thrown in /in/lEiJY on line 5
Process exited with code 255.
Output for hhvm-3.22.0
aQjLiA1UPSRGeeZuKISj1zc59flBwsdNbgFkrZE4qNU%3D
Output for hhvm-3.21.3
EuooHC1jKyiU7SV4m%2BHrm%2FebmXrezPDaiN2atzSw2iI%3D
Output for hhvm-3.18.5
kNLCUfwQ6v8ZhEjsz8Kx84a%2FqtliCvSs4Upra%2BwEubE%3D
Output for 5.6.0 - 5.6.30
Fatal error: Call to undefined function mcrypt_get_iv_size() in /in/lEiJY on line 5
Process exited with code 255.