3v4l.org

run code in 300+ PHP versions simultaneously
<?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.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.12 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
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.4.45, 5.5.24 - 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.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.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.3.11, 4.4.0 - 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

preferences:
182.43 ms | 401 KiB | 315 Q