3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cipher = 'AES-256-CBC'; // $cipher = 'AES-256-CFB8'; $cipher = OPENSSL_CIPHER_AES_256_CBC; $mode = strtolower(substr($cipher, strrpos($cipher, '-') - strlen($cipher))); $ivSize = openssl_cipher_iv_length($cipher); $blockSize = $ivSize > 0 ? $ivSize : openssl_cipher_iv_length(str_ireplace('-' . $mode, '', $cipher)); var_dump($mode); var_dump($ivSize); var_dump($blockSize);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Undefined constant "OPENSSL_CIPHER_AES_256_CBC" in /in/v7rkp:5 Stack trace: #0 {main} thrown in /in/v7rkp on line 5
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:
31.4 ms | 401 KiB | 8 Q