3v4l.org

run code in 300+ PHP versions simultaneously
<?php function aesEncrypt($str, $key) { return mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, aesEncryptPad($str), MCRYPT_MODE_ECB); } function aesEncryptPad($str, $blockSize = 16) { $len = $blockSize - (strlen($str) % $blockSize); $padding = str_repeat(chr($len), $len); return $str . $padding; } var_dump(aesEncrypt('ROLL TIDE', 'pass'));
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt() in /in/ShdYF:4 Stack trace: #0 /in/ShdYF(13): aesEncrypt('ROLL TIDE', 'pass') #1 {main} thrown in /in/ShdYF on line 4
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:
39.7 ms | 401 KiB | 8 Q