3v4l.org

run code in 300+ PHP versions simultaneously
<?php //82534 define('ENCKEY','w+2#)1FP&LIPTL2<8I2'); class CRYPT { public function encrypt($Str,$Key=ENCKEY) { srand(); $Str=str_pad($Str, 32-strlen($Str)); $IVSize=mcrypt_get_iv_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC); $IV=mcrypt_create_iv($IVSize, MCRYPT_RAND); $CryptStr=mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $Key, $Str, MCRYPT_MODE_CBC, $IV); return base64_encode($IV.$CryptStr); } public function decrypt($CryptStr,$Key=ENCKEY) { if ($CryptStr!='') { $IV=substr(base64_decode($CryptStr),0,16); $CryptStr=substr(base64_decode($CryptStr),16); return trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $Key, $CryptStr, MCRYPT_MODE_CBC,$IV)); } else { return ''; } } } // class ENCRYPT() $e = new CRYPT; $s = urldecode("LnMWU28qggKQUzfPasr03NYEG%2FD2A5Zas1Ory9GfkZ7kIUDQ9XKG6vsYKI03WYhZML%2FZxvqlWHbeCAXJ4uuD0TuRKZY1Jt8NLgSnNCDwMQjAQN5NAwfv45eWiNg2r6l596Z75ZQC%2FOunu5QhHvF3CvxHso3n9i%2BTW2HzzbHn%2B2Q%3D"); $s = $e->decrypt($s); echo $e->decrypt($s);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function mcrypt_decrypt() in /in/o1qnj:21 Stack trace: #0 /in/o1qnj(31): CRYPT->decrypt('\xD6\x04\e\xF0\xF6\x03\x96Z\xB3S\xAB\xCB\xD1\x9F\x91...') #1 {main} thrown in /in/o1qnj on line 21
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:
48.71 ms | 401 KiB | 8 Q