3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $iv = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM); $key = "0123456789123456"; $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 BEKqi
Output for 7.0.6 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_create_iv() in /in/7XGQ4:2 Stack trace: #0 {main} thrown in /in/7XGQ4 on line 2
Process exited with code 255.
Output for 7.0.5
YlvIwDEWJEbOj2dDDt/nKev79OtDWQEbn38/ZcfTlpc=array(1) { ["id"]=> string(1) "1" }
Output for 7.0.4
xFkJvNdNbdVZA01bJVJjlRNfrGCzh9+N6xvpB2XY2bw=array(1) { ["id"]=> string(1) "1" }
Output for 7.0.3
Q80ACvyP+Ye0lKvfzBXVS31W0QUL4bOkYPoBPk4nOPc=array(1) { ["id"]=> string(1) "1" }
Output for 7.0.2
5jD3Vl5N8VY4pdtjz0kY/1wCQe/Lp592+wBSptPExWg=array(1) { ["id"]=> string(1) "1" }
Output for 7.0.1
/dDTpjiJDLZlm/EZbCx7ACZzSBwpxnV88jgsMIPJ054=array(1) { ["id"]=> string(1) "1" }
Output for 7.0.0
rZqv9PoypjTFn/dqMagIdyigOr2fQANZprRampskBts=array(1) { ["id"]=> string(1) "1" }
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/7XGQ4 on line 2
Process exited with code 255.
Output for 5.6.20
q607P1bajJRGRH8qH2DgIjEUuqsrpmA/krq0vFjVftg=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.19
NHJwqfoQaYe4es/uEwF4bshPj0hbg3YN5NcSpkbU3yc=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.18
Jg8Lj/gRBKZZjCLHsscBctzUIpN4y6KoIx9fQ6V/S2w=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.17
oqomIdUcW/H0C1C1irZ8wl3HK7d1Ou2PmRnZ4rYV2tE=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.16
vToe5vRb0cqxY4Lnz8L0KCLHG7dkTjoMAsfBJRqhdmM=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.15
8VA3xJ9YddgfDwv7B7MhZNScQ0I23RXUjHDogwo9m6c=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.14
sFF19Q1AptWzzCp0omMEJ+T/xiVPlXj7iV5/MqCn3Ig=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.13
FHUociAQ4KxRFzk5fHWsJQ/bQjIdwmub1AUhlTeUndQ=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.12
eylntNgWaCDvYVHxCVdJZzjEvRs5xq7JwclSJK41Lqs=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.11
VuNx6lABV4D0H4/78sSrf3/wrxR+8fGN58AAUDcJsqA=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.10
jKsUbhSQAe+Gq5TGz1wUAiTQ7Xm25F8+z8vIHalHNPg=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.9
92lDhqafpLtCxltiQ2ycgVXLjywCCM4UHIMsjhZfEZE=array(1) { ["id"]=> string(1) "1" }
Output for 5.6.8
Jg2F/Cia9Aoqk6Vp73f2E3Tg+ynEh+d3MAevHHDpnkc=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.34
/aRCq2sve9v3EKjTTs2Fy7f7uuhWkpUeYmHWTviqZ3s=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.33
vUlLh6yMs6TQwierXymXil6pfqgVBPZPoykrNwcT8dI=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.32
UnmWEYBT97yPAzfLp6tWsgCzI2kwTCbdcIWF4M6EHBM=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.31
0FjwAUK1y8zkfSd2ymQGSPD9zkZH0K7FXHe+ZdM4V78=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.30
BndIngH5hHGpLQWC3qo1P58DnK3JynwIfn8LvRLUlcI=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.29
PAMZ69lZ9HRkAkBFXfy0VqTvoMmoKbVdol9jhrILQK0=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.28
RbqmzCuHb9OBBRHaGF9ebo22D1QGLLBweiODgt/1XvE=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.27
9FVHdK4TQKIOYxgxNOVZD7SaBQ9Ld/0shH89y0rwx1s=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.26
mL1wINW9kb0R49ODKu+jpLrk1YsAAAv23rePVPbiHfc=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.25
7NJ3gm4QK/t0vRcvrrnfeni7Nn37RSN9h9ArVizFZSY=array(1) { ["id"]=> string(1) "1" }
Output for 5.5.24
7uQBWF9uQOZ2xZCUrFwo3NkZLynCv1fCZ+M+ThbuvRM=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.45
3Xt7kAtLSQEZK5dSQ7otvvhrlyio1vlbuT34136gQak=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.44
siZgwBqFVbeG5ONFCkYDdJLsBM4m1YdR/6i/gze2/Bc=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.43
XIlGFojLJxU5rddaRiQ9ssalhzMPsY2+RVHAVuBVC5c=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.42
f5v7MGg3aolS0DyXxPBiO6RjYerxlZEltBYvjYsVuiw=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.41
4XqH5tqPuDAbIottMdHw28bttNGrBBPwPdRfvKskt8k=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.40
0K8caFoFLAF24mgidNet0AjgAEFOthkb1G8rTPG+yV4=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.39
tIieumXCcwzhkaOf/bSnz5A7kz8uaThM8d6C7nO3qZM=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.38
3PnSnnMRyBQI6uT2Vq8E5zc8usBxkpjQxzZsRrKemSA=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.37
uV+rq5kHZw7VBTaUN7019unziCAk1FM83EaKqHvKS+8=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.36
vsRrBokrqe5nikEQHw/yKZfXIlHSvs0ftBBmwSMovEI=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.35
Vc+83UWHpXhfktEGs5L96MngIDhPOssXzRLhQCdlXeU=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.34
2PdxDUd02oxsVdfR5jwyKwW906N9vQekSNc629NonzA=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.32
jwF+J3qa8+paf5lUiAbNtaWGI3sGbyE+arevkhwMUkI=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.31
+xViUs+oibOdLNYtwXAHMobvRL2JgYpQfKTTIAtjZdk=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.30
3zTsSbPF2nuPQa/MehB14N6/HWcU5rgQfk+xrc8wVMM=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.29
GOTjSpQ1/Qu4YoAceGcre5ApAlEz4McaUNB/RTDisUc=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.28
F47nP6IprY30r+N603zb7sfa4N6y+BunaJbBjc5n/hk=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.27
0rW5y5cSXVf+e7BMNf3kzlrJFLYdTh7/cCZDqtBFNUI=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.26
c4shpenxhH5RyDwJJAvB50nWrBL64qnANXzW+J8ZBgU=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.25
kAXo7eoq+3e2Sn2uJSAE1fC+Ei8U46EKejFP2BBrBMM=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.24
wUDe6reybtYrDLBdDM677LQ//RKA4rQkOaNZEWISWM0=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.23
Fjou7MA5JuT5xuWO8lMlyzN1XI9oJvYQpBcyLVshmxM=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.22
QpBilS01m56Sra+OVniwpnvS6ywbetlSWo7NzSVRCqQ=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.21
SQ8GStXejauYnS36iNZgC+8wvwXveR4nkeuyzaI2r4k=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.20
IBUXL29f1gM4oFx/0zAT/sdAwzYhk4eogdh94a+Dk9Y=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.19
eNR+sgFhGPJDqC8FrFgngbRpQ6xrf5CZrWg0nzyqVmI=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.18
G4hPmiB3/QA+obL9MM24hoevTqokAk77SO8Gk+JaFCQ=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.17
TD1MuZEk0jT7iC9PJcbHnoqLOifpUq7kuRmmQZEpW/o=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.16
cB1uWk85tT5qcf2IrDu+IgP4ayYWU1LZHF3ASGuoB2A=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.15
aVAhuErV0+XLSEgkFF0F4JRvXcbO6Pgt8P8AhKeueec=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.14
BdoDdzSMRLGcI9OijUa0/9FRS/eAs0M7YOUQ73QqMKg=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.13
+fWcZHQaV9gMwcDMuHS7oPRQGZGN9rYtQTPcRqIA6Ww=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.12
La6kWz5U0kkMP3Ahrrp8Z7q+8L56k0ID+1Qgq5dD9+Q=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.11
eNZqlvrEFknq7h11+1+CxC+/QccobFvRLRGuse+Q2eQ=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.10
XwsPLjIwiaun9Mik2tLV3xwu9WtjWm84g9foCDFR410=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.9
l78+1eIgmIrAsU2t9F/lXcg0nbFgwvF3OAqTmxwSxYk=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.8
pDrMV+DTilOuliWIQbG2e0oECpHoZsPFG8I6NCSWmKs=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.7
wsT2369ymVRLPIA8fuZ5iHojpfDwhMPdN/JF4V68ErE=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.6
yLQFQZ6YLaLDjuCFVIscT4HJYTsoygsts7ZZaNuZ4Go=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.5
AkjJVd2ZnLaOCKwkDbP3vQzNwmNcwwOBQlLdGf6i/TU=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.4
23q7INXO8wTkDAsQzN1vOjMnzElcKvKmxJ763YCuAKw=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.3
OWopvt/2san1ol/jthYHFMtGK6TfbhkAFERilzgUBkY=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.2
u8EeGCV+eZOoQJ2rg3YxKB3l35ivZB6KRo1rBHXWdH4=array(1) { ["id"]=> string(1) "1" }
Output for 5.4.1
9Z9LwCJQqmt/MRnwx4Jdw/eSzG/UHEKkEs496hA3ImM=array(1) { ["id"]=> string(1) "1" }