3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB); $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); var_dump(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, 'abcd', '1234567890', MCRYPT_MODE_ECB, $iv));
Output for 7.0.6 - 7.3.0alpha1
Fatal error: Uncaught Error: Call to undefined function mcrypt_get_iv_size() in /in/gldH6:3 Stack trace: #0 {main} thrown in /in/gldH6 on line 3
Process exited with code 255.
Output for 5.6.0 - 5.6.20, 7.0.0 - 7.0.5
Warning: mcrypt_encrypt(): Key of size 4 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/gldH6 on line 5 bool(false)
Output for 5.0.0 - 5.3.29, 5.5.35 - 5.5.38, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_get_iv_size() in /in/gldH6 on line 3
Process exited with code 255.
Output for 5.4.0 - 5.5.34
string(32) "y�T[w��^0;�>�D Qzմ��ū�d��?J�"
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: mcrypt_get_iv_size() in /in/gldH6 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: mcrypt_get_iv_size() in /in/gldH6 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: mcrypt_get_iv_size() in /in/gldH6 on line 3