3v4l.org

run code in 300+ PHP versions simultaneously
<?php $secret = hex2bin('123456789ABCDEF0DEF1DEF2DEF3DEF4123456789ABCDEF0DEF1DEF2DEF3DEF4'); function encrypt128($str, $secret) { return mcrypt_decrypt(MCRYPT_RIJNDAEL_256, $secret, base64_decode($str), MCRYPT_MODE_ECB); } function sslEncrypt128($str, $secret) { return base64_decode(openssl_encrypt($str, 'aes-256-ecb', $secret,OPENSSL_ZERO_PADDING)); } //var_dump(encrypt128('tc93Ex6l2GZIl8pEMLW13g==', $secret)); var_dump(sslEncrypt128(base64_encode('[03/20/18 13:28]'), $secret)); // lets assume you just called an openssl function that failed while ($msg = openssl_error_string()) echo $msg . "<br />\n";
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function openssl_encrypt() in /in/CHjuT:12 Stack trace: #0 /in/CHjuT(16): sslEncrypt128('WzAzLzIwLzE4IDE...', '\x124Vx\x9A\xBC\xDE\xF0\xDE\xF1\xDE\xF2\xDE\xF3\xDE...') #1 {main} thrown in /in/CHjuT on line 12
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:
155.21 ms | 406 KiB | 5 Q