3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $td = mcrypt_module_open('rijndael-128', '', 'cbc', ''); mcrypt_generic_init($td, hex2bin("a6bf4df0f3edeb67763adbb23942c793"), hex2bin("0a2a7127c3918f5e")); $encrypted = mcrypt_generic($td, "application/epub+zip"); mcrypt_generic_deinit($td); mcrypt_module_close($td); echo bin2hex($encrypted); ?>
Output for 7.0.6 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_module_open() in /in/Nd8Jn:4 Stack trace: #0 {main} thrown in /in/Nd8Jn on line 4
Process exited with code 255.
Output for 5.4.36 - 5.5.34, 5.6.7 - 5.6.20, 7.0.0 - 7.0.5
Warning: mcrypt_generic_init(): Iv size incorrect; supplied length: 8, needed: 16 in /in/Nd8Jn on line 6 ce84eb6b59364f15c8e80fcbc5915cb9d82dea011dc80e016752d44597113982
Output for 5.0.0 - 5.4.32, 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_module_open() in /in/Nd8Jn on line 4
Process exited with code 255.
Output for 5.4.34 - 5.4.35
Warning: mcrypt_generic_init(): Iv size incorrect; supplied length: 8, needed: 16 in /in/Nd8Jn on line 6 c030b8e84287e6655e1784960c916d0fabfa81b48491649c95759339cc8837cd
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: mcrypt_module_open() in /in/Nd8Jn on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: mcrypt_module_open() in /in/Nd8Jn on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: mcrypt_module_open() in /in/Nd8Jn on line 4