3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $key = "sfjdo89ejasfj3oh9w3jipmowf984lkfq32jljlk3famkladf"; $string = "pd[land]=at&pd[plz]=9020&pd[geburtsjahr]=1980&pdIdent[skilineId]=123456789&pdFree[skiGebiet]=Nassfeld"; $md5Key = md5($key); $encrypted = base64_encode(mcrypt_encrypt(MCRYPT_3DES, $md5Key), $string, MCRYPT_MODE_CBC, md5($md5Key)); echo $encrypted; $decrypted = rtrim(mcrypt_decrypt(MCRYPT_3DES, $md5Key, base64_decode($encrypted), MCRYPT_MODE_CBC, md5($md5Key)), "\0"); echo $decrypted;
Output for 7.0.6 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt() in /in/PdvSo:7 Stack trace: #0 {main} thrown in /in/PdvSo on line 7
Process exited with code 255.
Output for 5.6.8 - 5.6.20, 7.0.0 - 7.0.5
Warning: mcrypt_encrypt() expects at least 4 parameters, 2 given in /in/PdvSo on line 7 Warning: base64_encode() expects exactly 1 parameter, 4 given in /in/PdvSo on line 7 Warning: mcrypt_decrypt(): Key of size 32 not supported by this algorithm. Only keys of size 24 supported in /in/PdvSo on line 10
Output for hhvm-3.10.0 - 3.12.0
Warning: mcrypt_encrypt() expects at least 4 parameters, 2 given in /in/PdvSo on line 7 Warning: base64_encode() expects exactly 1 parameter, 4 given in /in/PdvSo on line 7 Warning: Size of key is too large for this algorithm in /in/PdvSo on line 10 Warning: mcrypt_decrypt(): The IV parameter must be as long as the blocksize in /in/PdvSo on line 10 H���b��
Output for 5.0.0 - 5.4.35, 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_encrypt() in /in/PdvSo on line 7
Process exited with code 255.
Output for 5.4.36 - 5.5.34
Warning: mcrypt_encrypt() expects at least 4 parameters, 2 given in /in/PdvSo on line 7 Warning: base64_encode() expects exactly 1 parameter, 4 given in /in/PdvSo on line 7 Warning: mcrypt_decrypt(): Size of key is too large for this algorithm in /in/PdvSo on line 10 Warning: mcrypt_decrypt(): The IV parameter must be as long as the blocksize in /in/PdvSo on line 10 H���b��
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: mcrypt_encrypt() in /in/PdvSo on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: mcrypt_encrypt() in /in/PdvSo on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: mcrypt_encrypt() in /in/PdvSo on line 7