3v4l.org

run code in 300+ PHP versions simultaneously
<?php $plaintext = "\x01\x23\x45\x67\x89\xAB\xCD\xEF"; echo "128-bit: ", bin2hex(mcrypt_encrypt('cast-128', "\x01\x23\x45\x67\x12\x34\x56\x78\x23\x45\x67\x89\x34\x56\x78\x9A", $plaintext, 'ecb')), "\n", "80-bit: ", bin2hex(mcrypt_encrypt('cast-128', "\x01\x23\x45\x67\x12\x34\x56\x78\x23\x45\x00\x00\x00\x00\x00\x00", $plaintext, 'ecb')), "\n", "40-bit: ", bin2hex(mcrypt_encrypt('cast-128', str_pad("\x01\x23\x45\x67\x12", 16, "\0"), $plaintext, 'ecb')), "\n"; ?>
Output for git.master, git.master_jit, rfc.property-hooks
128-bit: Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt() in /in/du6Bf:8 Stack trace: #0 {main} thrown in /in/du6Bf on line 8
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:
42.81 ms | 401 KiB | 8 Q