3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $phone = "23f843208947"; echo $phone; $phoneString = pack("q", $phone); echo $phoneString; $phoneEncrypt = mcrypt_encrypt(MCRYPT_3DES, "abcd", $phoneString, MCRYPT_MODE_CBC); echo $phoneEncrypt;
based on gQZiB
Output for 7.0.6 - 7.2.0
23f843208947 Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt() in /in/3NZaE:10 Stack trace: #0 {main} thrown in /in/3NZaE on line 10
Process exited with code 255.
Output for 5.6.8 - 5.6.20, 7.0.0 - 7.0.5
23f843208947 Warning: mcrypt_encrypt(): Key of size 4 not supported by this algorithm. Only keys of size 24 supported in /in/3NZaE on line 10
Output for 5.6.21 - 5.6.28
23f843208947 Fatal error: Call to undefined function mcrypt_encrypt() in /in/3NZaE on line 10
Process exited with code 255.
Output for 5.3.20 - 5.3.29, 5.5.35
23f843208947 Warning: pack(): Type q: unknown format code in /in/3NZaE on line 7 Fatal error: Call to undefined function mcrypt_encrypt() in /in/3NZaE on line 10
Process exited with code 255.
Output for 5.4.10 - 5.5.34
23f843208947 Warning: pack(): Type q: unknown format code in /in/3NZaE on line 7 Warning: mcrypt_encrypt(): Attempt to use an empty IV, which is NOT recommend in /in/3NZaE on line 10 ���$��l