3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dmcryptText = "dummy"; $key = "foobar"; $size = mcrypt_get_iv_size(MCRYPT_BLOWFISH,MCRYPT_MODE_ECB); $iv = mcrypt_create_iv($size, MCRYPT_DEV_URANDOM); //注意这里 $m = mcrypt_ecb(MCRYPT_BLOWFISH, $key, $dmcryptText, MCRYPT_DECRYPT, $iv); var_dump($m);
Output for 7.0.6 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_get_iv_size() in /in/hVVqR:4 Stack trace: #0 {main} thrown in /in/hVVqR on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.5
Fatal error: Uncaught Error: Call to undefined function mcrypt_ecb() in /in/hVVqR:8 Stack trace: #0 {main} thrown in /in/hVVqR on line 8
Process exited with code 255.
Output for 5.3.19 - 5.3.29, 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_get_iv_size() in /in/hVVqR on line 4
Process exited with code 255.
Output for 5.5.24 - 5.5.34, 5.6.8 - 5.6.20
Deprecated: Function mcrypt_ecb() is deprecated in /in/hVVqR on line 8 string(8) "�"� �"
Output for 5.4.9 - 5.4.45
string(8) "�"� �"