3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $key="0123456789123456"; $iv = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM); $plain = "id=1"; $res = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $plain, "cbc", $iv); $res = base64_encode($iv.$res); echo $res; /*$res = base64_decode($iv.$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 KP1DY
Output for 7.0.6 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_create_iv() in /in/WDj6u:3 Stack trace: #0 {main} thrown in /in/WDj6u on line 3
Process exited with code 255.
Output for 7.0.5
u0zsGefNJNKDALeEdMDBUhb22OzkmaGf6iC9hwLrqUA=
Output for 7.0.4
uel52dAoHajX2yutGwy6f7/pcc6Whhr6Np5Langt4u0=
Output for 7.0.3
FLvf5mVjw6/d8jBiFdhIY3yTXIgjDqkBtvuoNFgsPKc=
Output for 7.0.2
NJnGbFxjiRpkjuxpsDwS//rJAtTDfzHxtvluu+jIlD0=
Output for 7.0.1
WHq9Q09O5iX/Aai+itCDjezw/sOimH1qf/hfp4KUroE=
Output for 7.0.0
HfajeiAfaK1Di6i4YwqNB3l1YV1NFCDmdLor8NGSA+Y=
Output for 5.3.18 - 5.3.29, 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_create_iv() in /in/WDj6u on line 3
Process exited with code 255.
Output for 5.6.20
WehmdR3AU7jO2iWxPX+JrFPoZz1fnGmUkhCk5T16E58=
Output for 5.6.19
lqZflhyol1k0qY6l61WZW4+AG3tAYmO6VQdsExEecjg=
Output for 5.6.18
QuIUUqht77jnMZ19cKQci0uCd834CqGdaF/A9HHukJ0=
Output for 5.6.17
WV9dcjZwUfPgw1b1IWdJKyRhpTRp2NjXqyPXbabvbp4=
Output for 5.6.16
WF+332biL6qrJuIfllSajb9clyXsfUFn3D2w9HDfv0Q=
Output for 5.6.15
cV2FhXNpc0hIqUliSoAfhMWHLmk7Hsmifl+AiqGSZbM=
Output for 5.6.14
YYQN/qPf7U4nea4aoTCwaj+UbwIOyHcQ3nnQTy4z/WY=
Output for 5.6.13
ORFfOyIYsTN1cxUteMjRNcNGfE7qMrI9iUm6QA05L0k=
Output for 5.6.12
PcgxmU7t56OcxdNU9UuDa92sVNYrFPaZdRaEzv+/dYg=
Output for 5.6.11
91lt54OW92tOBD2TU33kBvc5seVZbHrcoY6pvBYNZ7o=
Output for 5.6.10
bE6b/qUP25CHw04mYA+3q9wYziPdunKLwkEhRZi3CRc=
Output for 5.6.9
jv8J2bro7pFqfS+CWIlAitNeApeYXBvikHyifR7ZeRQ=
Output for 5.6.8
+ZZPGmlZ3MOuD3nbkqgF78qh74QtFc9K+LqSlXmaAZM=
Output for 5.5.34
/gCir1rdoh624sDrNpy2QJoUUprA74YA+7vopA8GSLs=
Output for 5.5.33
FQseMFwQUagUyfnmHWu2fFqTpJUD1D7e30LNocH0nHo=
Output for 5.5.32
0KdN6z1rY8D2OGVxl64mig9xN/NMe+yISLHelGBB+nc=
Output for 5.5.31
slllg3bQwaKhon/gin7Kg8VrH1aoLEhypd9Tv9fn3R0=
Output for 5.5.30
IOgnuPeeqcEIfBjMS7wFPZhyCVhFu4IjNtgLXgprXgI=
Output for 5.5.29
+Ej3DqSyR4NWaW7BzR89m69hO0CfpiZ/zLc9G02raW0=
Output for 5.5.28
B/bCJqQHymtVqq8za7/CRbH9kftfiYkbdLu5Pf2FxPU=
Output for 5.5.27
/6uIsIz2A3NqhKSgRDaTD9vhs5s+GkxzyZP/awPaxag=
Output for 5.5.26
VSxO+zS253tSvzCakntFe5QIHDUfO6Jb8ReohTZsb3M=
Output for 5.5.25
Vr7IIuU4fF9Gvo4kykhBaUr+3iAOmvATJanMLd91c1I=
Output for 5.5.24
zTSLxG9YiiIvCHXoCpgXyY4/hAgahRXukWORKFE0BtI=
Output for 5.4.45
EDlaqlp5bM/FjPtEDmuQXXpLC0+CR8E2f6KdnOKiY/E=
Output for 5.4.44
68A7vebcp15Vir+cV37n1zBXQ0jXP2gUY7Vh72bAaNY=
Output for 5.4.43
KaqG3/qblzwwn4+LqFejkB7n6w0TAgiP50DEPw/tm6A=
Output for 5.4.42
h6wBczxF9BrWjuG9XMAQJmb22O+o1t9XquPUnLKU98c=
Output for 5.4.41
NGXIbEbAiNuGodhrRWqSE1TStlq29q2SZRnK9mWxq2E=
Output for 5.4.40
yPwz8UIHOnx8WT/EnOpubuDXIkueKK68X/Czl/kYGjE=
Output for 5.4.39
PaWq5m6hLrHGAhZf6KUeNVhvJz4l240jhqQ20nJ1vOg=
Output for 5.4.38
XVHEALjS1nu/r9THXHzP4tpN2pIDpO8NtTry/9q0RhU=
Output for 5.4.37
kEVB9zG1MnVvARTX45e1FmExzNjMyoAnVafce7vTreg=
Output for 5.4.36
jTLj0otJvPpBdU6wumGT182yPUvTJ3ZWkdZWvtsFR18=
Output for 5.4.35
r1lOA5Wp3EOHO87A8kPVyHTjEjYoVxE403soWJB+c2w=
Output for 5.4.34
12Cc8H7YCQ+K9/ZQwPL2LCWSZJ+OEBKlqk41o/7WT6A=
Output for 5.4.32
tub65CtyFdKyWIvb5nQ8tBtCOfWTBxxtznefO1m86r0=
Output for 5.4.31
j5EQupLQ7LXWy/5l95iqZRgkRKfxVQQW+UFnucUkw4w=
Output for 5.4.30
kDURVQsuo6VwyAPg1+YdQm9US1H8tRd4pbDy+QNjQZQ=
Output for 5.4.29
gcus6bOF6CLKcSPLE0CNjfHBrBvuvgcHch5kdkQ9U94=
Output for 5.4.28
AybTBkZ5u51sYCmFam9wf3gcvRWMSh2xkIdC97YHA3Y=
Output for 5.4.27
CILxHJvvzRIPYapmEJxgSjrP8Rq0X3Pdljad6QjK484=
Output for 5.4.26
QF4oYIH8yN/b4wP914PYZUcnKmft2QG9yOktcvC585c=
Output for 5.4.25
4snq6jyUosSO22xwV1mZwDnvxUCAUhz10NenEfR37vk=
Output for 5.4.24
tIw5co3cP9rpd3jOKeurRsN/zKCbABaM4ZzX4dSJba4=
Output for 5.4.23
wvns96KpTasuBwdoCEtEIbWhdvlN1pxWv2MDrLL3DSA=
Output for 5.4.22
SKaB4ChvLhOEhSV6IUhy97TMiRAcrIlOt6hENEkMj7k=
Output for 5.4.21
svwMy/azkDN65VuZUdhla8ohhQmw1EHuFp5lfSZ/WDk=
Output for 5.4.20
yr3wLfr7/HqdPWYi0CK90NRFzdgym9TfhNOMg81SRjc=
Output for 5.4.19
4KF0jnvYLcHzimVxi1fNziWKMnagWmEPhrlDyrnxRTo=
Output for 5.4.18
u1PCvcVD0OGxYJlSjZPpIIyMQURkiNnvReYxdPtOJqA=
Output for 5.4.17
8c7OXz28b5u/pGqSZh4zCUk34GjJQ7T+fO+LLIBLL2k=
Output for 5.4.16
v8coOO4RpBoG1A3fVSiZzcdFdfoRUfFG1V6F4CxHPjY=
Output for 5.4.15
TbNjdmFG8zMtHc2GlMqkee7NUeB8NgRg8Ma4IdDTohc=
Output for 5.4.14
QZhZ7r1+hapkV02GHdbsI6Q9jKpiQAn0J87Xw0Na+8U=
Output for 5.4.13
1aTJbL3Ge/hbgnLL0YZ1YkmGnjh311MzarUmM1rDkJU=
Output for 5.4.12
6LSuIPVi0kUTPPN3iBrgVGg6kLFKfBPNX4QLioPfcsQ=
Output for 5.4.11
buBT17R9MvKQWxrut9VoMnW34Ya89XYS93hrUaLmkS0=
Output for 5.4.10
QRLKjZMDCcXNlijB7DZDz+pvTr57nr4L+jrMceRPwok=
Output for 5.4.9
Ktx4jS0yGuAh0GDhmIcct/CA2dXyoD+Mb3zPi7p1Sj0=
Output for 5.4.8
OeKO0d4p2zKikFw2x6NeDgSNhpmJb2FNuledeBsKqbM=
Output for 5.4.7
DhsyeOxTsll/j7TmWKhQwrwJ6Hmuo6ZniozDFLt0blI=
Output for 5.4.6
RhT2tg7ky6tAl/sJ/YEsNtr70QGo4zawrH+G0utGANM=
Output for 5.4.5
oWL/kThCjYTlYJ6cIJD8oeNkA8UtZHTJrGj77VCSA0c=
Output for 5.4.4
fVkoTVZcRBcBk6r2cY+WfFLxQcYUxCJsRTRU6semlfY=
Output for 5.4.3
y78ICgGxGJ8bUtlWPHIVDQFaQni1DO9jF32xMoFJhc0=
Output for 5.4.2
z2yt52yyhkgOZjk2SAwPo9p9/qTYTq+DYcDXFrf2nw8=
Output for 5.4.1
Jxb4isaUIAOb+VS2+93VS22+obijsvr7etYAiv11IkE=