3v4l.org

run code in 300+ PHP versions simultaneously
<?php $message = 'test'; $key = openssl_random_pseudo_bytes(16); $iv_size = mcrypt_get_iv_size(MCRYPT_BLOWFISH_COMPAT, MCRYPT_MODE_ECB); $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND); $cipher = mcrypt_encrypt( MCRYPT_BLOWFISH_COMPAT, $key, $message, MCRYPT_MODE_ECB, $iv ); $plain = openssl_decrypt( $cipher, 'BF-ECB', $key, OPENSSL_RAW_DATA||OPENSSL_ZERO_PADDING, $iv ); var_dump( $message, bin2hex($cipher), $plain, mb_strlen($message, '8bit'), mb_strlen($plain, '8bit'), $message === $plain );
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function openssl_random_pseudo_bytes() in /in/D4Kn0:3 Stack trace: #0 {main} thrown in /in/D4Kn0 on line 3
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:
162.22 ms | 405 KiB | 5 Q