3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = 'this is my test string'; $key = '1234'; $mcryptEnc = base64_encode(mcrypt_encrypt(MCRYPT_BLOWFISH, $key, $data, MCRYPT_MODE_ECB)); $data = $data . str_repeat(chr(0), 8 - (strlen($data) % 8)); $opensslEnc = base64_encode(openssl_encrypt($data, 'bf-ecb', paddKey($key), OPENSSL_ZERO_PADDING| OPENSSL_RAW_DATA)); echo "Mcrypt encoded = $mcryptEnc \n"; echo "OpenSSL encoded = $opensslEnc \n";
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt() in /in/9FMmD:6 Stack trace: #0 {main} thrown in /in/9FMmD on line 6
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:
54.45 ms | 401 KiB | 8 Q