3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $iv = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM); $key = "0123456789012345"; $plain = "id=1"; $res = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $plain, "cbc", $iv); $res = base64_encode($iv.$res); echo $res; $res = base64_decode($res); $iv = substr($res,0, 16); $res = substr($res, 16, strlen($res)-16); $res = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $res, "cbc", $iv); $res = str_replace("\x00", "", $res); parse_str($res, $arr); var_dump($arr);
based on 7XGQ4
Output for 7.0.6 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_create_iv() in /in/bOSt0:2 Stack trace: #0 {main} thrown in /in/bOSt0 on line 2
Process exited with code 255.
Output for 7.0.5
6+b67iZbgZrK4a1xta05FzQ/aoV5+eJaZKI6OJZZ3xo=array(1) { ["id"]=> string(1) "1" }
Output for 7.0.4
uP4d7yvRHlO2+6wUREnIyydCFeYmvwOSvTYXxI/HG2s=array(1) { ["id"]=> string(1) "1" }
Output for 7.0.3
MYxovuqbZcMbL8txZWvAO7K9F3yvSDhUjalZhdV0Tg8=array(1) { ["id"]=> string(1) "1" }
Output for 7.0.2
ekVVd9S35y+YnIDfcOTqgWF4DnzGgmfOVOeSRWDgyyw=array(1) { ["id"]=> string(1) "1" }
Output for 7.0.1
Yu/xY8PcIwLGi6YejNA4NTT5c5S6nRqY53KMCoRew7c=array(1) { ["id"]=> string(1) "1" }
Output for 7.0.0
8KoIDLBgsH1vQ5ghlRp6MLia3w8aJLckxvW1EKh0FEI=array(1) { ["id"]=> string(1) "1" }
Output for 5.3.21 - 5.3.29, 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_create_iv() in /in/bOSt0 on line 2
Process exited with code 255.
Output for 5.6.20
hNkfDt1dDvYSgd7IpaDkGIA9aC8E6EsmlemnjDjTbaU=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.19
VMLpx+1oHruo8e2RKpKPogG/thwEmxwymeCDgBeVzwM=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.18
YzgxyzDWC7wxFAwa6MIwr6VIz+0e73+WwcKRUuvDV7Q=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.17
Z9YGDpR5w+8zUp70CEJI4r1s2QeXsB9SL1w5ome+LNY=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.16
vHzsxP6oGkrXiSPV8MzWgjBjGOQy4EV/LsTj5pENXIw=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.15
gEdxM1Jk/UaWcWQ5gNbSScfzci6qEzaeLLjIfFUWtAM=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.14
24jznLmRE73quf5Tdpm4mjUkkt2P8qWkswaVGV8ync8=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.13
bUEYnpinQoU+uf4M4n1Sr3dkS8/NR3W7M2bBiYorK0Y=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.12
AhSKZJukKCpsD+M4T+rJLJeQ8qqm2sCFaiNGcMc7U0k=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.11
d+47DDyZyX85+j4esW4QI3sDI+U+dwoOLufYoEaSUzM=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.10
aE7r9SYv1WyHqb2WU47NMmAAA6qkeTRCdvRt49IEWS8=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.9
/fWCbnanjC2yCVC5o2cgOZpWVSw/b82EFw5VPn66/oE=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.8
pMQyz/pOCUtxCNBE0qsBrNlqt9x8Dr8e23aQY/Tcqf0=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.34
TsuIezuS1Xm++QV1Vm/esosfNpFvNsg46c4THSnd4m0=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.33
H9NltoccEojpHOpfX79DfTPI853ae3JCnDPX0Pshr9w=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.32
Hkea8yot/nK0re55OeqVohu8kfeEquEqxc26Zo5IOPE=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.31
uA6x+9gBdV40TKytViCUEDqfP7Tq2fDXcy55dha2AVU=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.30
Q6WUfwLKAQ+WPGgjRx9kLOce7mx8xYQ5wDo9gdjIegU=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.29
omOSECM2CzSYpKTS9Sfjd6H3S2nEuyqxXacts6dbNYw=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.28
pcV6McPM1YRtqAXG3cX5KrUoG+rtt0/M8kI+DMmawG0=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.27
Q1IV5tzfo90nadBNVhOT5M2eDOGp13SK1ha7mtbI+kY=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.26
lTV4lcc+B0QzIp3VlgEvSjeWxNAOr28nqvoQk2Ha45E=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.25
8aS2BFp/kBqbDH/xuq6c9nk4voBgnmeuqOzgB/KV9Aw=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.24
eoT/s3tIZT21Z1gsv4wAzLx6akBfnwjbkQJnF/GF8Ho=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.45
Qhy8be9ay/EjQO+rlO8fFiCvLRCHOfEy+eSu7VtYEXI=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.44
TLdWGUjs7VAJ7UQGdj2tCDSVlkGG5QBQaVJUtZg+WKg=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.43
3sV8Eskgp7Zqra2zLBFnAFsh0/j4mcj9G0DLdhZUisY=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.42
gkSwYQRbVyMEPmiCEpywYF45jhLV6wwOVYQ93SB2TUs=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.41
Yzx0RAA75i5FGfH7sfZFKbiDGqWLIQdT8L75okE9+kM=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.40
eByYuAix6CtD8mEM80XqXf6TASGKZ+43O55WZwcCRWY=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.39
9V6DfD9M/2M/FORWdhaiGp5sAwB3tnjfGkCWlFtxkes=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.38
Jw4QTtW6MLe7vgEeR9wWOnlJ8Um6I80oj1b1xiGFfNI=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.37
b48e0Tm8gT8QVgcRi4ZPcEz3MQVWQuarztUFjADjfqA=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.36
pgZW4v9clB5ZA3Pn8xglcVI1zbzrQMfPGSRY8H3Wrmc=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.35
L3ZZkJ0V9Z3w+CTmsk0cdyRhYK9o7MLDpz7Dbtyu9oE=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.34
4tfdI1LGlOplLvQXTKk+1HqNfojTiWB1AZuvRRBjW5o=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.32
bv1GKhijEJYxU3vJlPiJMXDyuC7ApDdRPVN846nFjAo=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.31
DHQOqcWk72IMPTQiQ+TBeL0e41d0rsjcd3CMZFiADxU=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.30
8tNOG1MBh08O+af2+yyVlQ+xLodFddFQPptOfkKLb5g=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.29
LSQi7NWgYrH5DXlZfUSmWMdUwKRXxwGQz2+9ShHQvX4=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.28
W/WxtQ+R88f7l6qbtzu2TuWj96t3S2daEoAyVohtj+U=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.27
dGqRraX/vmHHVD7ztXrUT87QNzEyvWxmTTpxVhgPook=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.26
qOS/4ZDpljy/jIVoY/84F73wefjWdxCJXI4ce8Q00cw=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.25
BNg5Ur/OKgZuAWJ0wQKhiNr/fJtLpHbJ8W0Y71+C5qI=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.24
aJR1sTSX7xghcAUQOPKWFK1k6f3ecjD1vjUkarwFL0Y=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.23
o5c+VQs6qPgeOowuyxuUx6LL04fOrGrRaTqO5qyJTjo=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.22
4V6zMaHfInxUmHpizyZ2QK6sjTibqSwRxlmgt25Ptqs=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.21
KH0vheRRCdIPFU24HwZjZkyYWCC/kiKZjQUrQnpTOVY=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.20
gjO+MGqKjF/5ZvuJ6BZUvj1hk/QFoNsJ9Ym92zF0GVg=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.19
2xfI2dKr0ftwrdhyL3TsE35EjBheLXmq0U+/btQUp7Y=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.18
n/LMQiwwCHnDrizyGsWDgWOOfOF2wbNRaoEHhkCkhQA=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.17
4OvXQfh24gjKUJz/TvMEkUDUnnL0CwqhKRakgmcbCwU=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.16
9vKiymRPFolJLLQqpPoE+YqvPA5IskPOjtHU2wQwysg=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.15
p5xH79S6DQ2I4Bto3MzpCwrCIGsE4S0tj2TiwBP+1nA=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.14
jvptKGgRl9k3dqBUYu7wgtP7XdxW62FsAQNABco+p+Y=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.13
Hqw56txFCpjeM6fHFOAsiHgtk4LaOrzrbJbVkQ6H7iE=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.12
4zvUx1JTt61NDNr3YskMIuqcnuOTwOrtLh9k5ckqx+s=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.11
Ua9tk2AVuxOT9b9ysMGI4d4scYCUqTJoZTivxH3EN0w=array(1) { ["id"]=> string(1) "1" }