3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cc = 'my secret text'; $key = 'my secret key'; $iv = '12345678'; $cipher = mcrypt_module_open(MCRYPT_BLOWFISH,'','cbc',''); mcrypt_generic_init($cipher, $key, $iv); $encrypted = mcrypt_generic($cipher,$cc); $encrypted = base64_encode($encrypted); mcrypt_generic_deinit($cipher); mcrypt_generic_init($cipher, $key, $iv); $decrypted = mdecrypt_generic($cipher,$encrypted); $decrypted = base64_decode($decrypted); mcrypt_generic_deinit($cipher); echo "encrypted : ".$encrypted; echo "\n"; echo "decrypted : ".$decrypted;
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function mcrypt_module_open() in /in/j85VQ:7 Stack trace: #0 {main} thrown in /in/j85VQ on line 7
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
30.74 ms | 401 KiB | 8 Q