3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = hash('sha256', 'spottycats', true); var_dump(bin2hex($key)); $cipher = openssl_encrypt( 'Yes, it totally does.', 'aes-128-ctr', $key, OPENSSL_RAW_DATA, str_repeat("\x00", 16) ); $hmac = hash_hmac( 'sha256', $cipher, hash('sha256', 'spottycats', true), true ); echo base64_encode($cipher . $hmac), PHP_EOL;
Output for git.master, git.master_jit, rfc.property-hooks
string(64) "27ba61131ac180b9c03e439dd81bc536f63b30b6009000688292f17cc086da61" Fatal error: Uncaught Error: Call to undefined function openssl_encrypt() in /in/VC0uS:5 Stack trace: #0 {main} thrown in /in/VC0uS 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:
60.47 ms | 405 KiB | 9 Q