3v4l.org

run code in 300+ PHP versions simultaneously
<?php function base16Encode($arg){ $ret = ''; for($i=0; $i < strlen($arg); $i++){ $tmp = ord(substr($arg, $i, 1)); $ret .= dechex($tmp); } return $ret; } function encrypt($key, $link){ $cp = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '', 'cbc', ''); @mcrypt_generic_init($cp, $key, $key); $enc = mcrypt_generic($cp, $link); mcrypt_generic_deinit($cp); mcrypt_module_close($cp); return $enc; } $key="31323334353637383930393837363534"; echo $transmitKey = base16Encode($key); echo '\r\n\r\n'; echo base16Encode($transmitKey); $link="xxdd"; $crypted = base64_encode(encrypt($key, $link)); //echo $crypted;
Output for git.master, git.master_jit, rfc.property-hooks
3331333233333334333533363337333833393330333933383337333633353334\r\n\r\n33333331333333323333333333333334333333353333333633333337333333383333333933333330333333393333333833333337333333363333333533333334 Fatal error: Uncaught Error: Call to undefined function mcrypt_module_open() in /in/f8Tbf:14 Stack trace: #0 /in/f8Tbf(29): encrypt('313233343536373...', 'xxdd') #1 {main} thrown in /in/f8Tbf on line 14
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:
32.31 ms | 401 KiB | 8 Q