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); $res = base64_decode($res); $iv = substr($res,0, 16); $res = substr($res, 16, strlen($res)-16); echo $res; $res = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $res, "cbc", $iv); $res = str_replace("\x00", "", $res); parse_str($res, $arr); var_dump($arr);
based on 8bm7V
Output for 7.0.6 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_create_iv() in /in/L5eAD:2 Stack trace: #0 {main} thrown in /in/L5eAD on line 2
Process exited with code 255.
Output for 7.0.5
�obxn@�M����b�{Xarray(1) { ["id"]=> string(1) "1" }
Output for 7.0.4
'k��91��u\��array(1) { ["id"]=> string(1) "1" }
Output for 7.0.3
��=g&hc�@�mΒN�array(1) { ["id"]=> string(1) "1" }
Output for 7.0.2
��Sjo��s$�n�!carray(1) { ["id"]=> string(1) "1" }
Output for 7.0.1
��5K�ɚ~���y��array(1) { ["id"]=> string(1) "1" }
Output for 7.0.0
�/̞5�a=���larray(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/L5eAD on line 2
Process exited with code 255.
Output for 5.6.20
)*-tai�7�Kc��_array(1) { ["id"]=> string(1) "1" }
Output for 5.6.19
� H[F^��2AvJ����array(1) { ["id"]=> string(1) "1" }
Output for 5.6.18
����P��F�array(1) { ["id"]=> string(1) "1" }
Output for 5.6.17
���~:�����Q;yuarray(1) { ["id"]=> string(1) "1" }
Output for 5.6.16
A@D7:J�������array(1) { ["id"]=> string(1) "1" }
Output for 5.6.15
��|��"O ��CeJarray(1) { ["id"]=> string(1) "1" }
Output for 5.6.14
,�Rd�ٸ,V��$�O.array(1) { ["id"]=> string(1) "1" }
Output for 5.6.13
ݼz�ķ��_ �7�:array(1) { ["id"]=> string(1) "1" }
Output for 5.6.12
��1�7�FDy_�Fh�array(1) { ["id"]=> string(1) "1" }
Output for 5.6.11
u�t����K���"�array(1) { ["id"]=> string(1) "1" }
Output for 5.6.10
s�㺝2�[ܑk���array(1) { ["id"]=> string(1) "1" }
Output for 5.6.9
隣�i�5I���Q�Rarray(1) { ["id"]=> string(1) "1" }
Output for 5.6.8
���dr���X%�marray(1) { ["id"]=> string(1) "1" }
Output for 5.5.34
�Y�-��oo� HX��D�array(1) { ["id"]=> string(1) "1" }
Output for 5.5.33
�8��3� ��)]1�:�array(1) { ["id"]=> string(1) "1" }
Output for 5.5.32
� �b����JQ�rarray(1) { ["id"]=> string(1) "1" }
Output for 5.5.31
=p�)V���Յ�z�array(1) { ["id"]=> string(1) "1" }
Output for 5.5.30
t9ɸi� )�&BҺ��array(1) { ["id"]=> string(1) "1" }
Output for 5.5.29
F�Qq)I���z�^���array(1) { ["id"]=> string(1) "1" }
Output for 5.5.28
;iȕX��xb��7`�array(1) { ["id"]=> string(1) "1" }
Output for 5.5.27
�/2(u� j��H@�g3array(1) { ["id"]=> string(1) "1" }
Output for 5.5.26
��ګ�BN��l��{:�array(1) { ["id"]=> string(1) "1" }
Output for 5.5.25
�S��ov�l)��array(1) { ["id"]=> string(1) "1" }
Output for 5.5.24
u�O��na$���x��array(1) { ["id"]=> string(1) "1" }
Output for 5.4.45
��i�7�B��ȸarray(1) { ["id"]=> string(1) "1" }
Output for 5.4.44
n���s�A���ú��array(1) { ["id"]=> string(1) "1" }
Output for 5.4.43
���^@J���߫��-�array(1) { ["id"]=> string(1) "1" }
Output for 5.4.42
}\��@;���� array(1) { ["id"]=> string(1) "1" }
Output for 5.4.41
H�E�����glJ�M �array(1) { ["id"]=> string(1) "1" }
Output for 5.4.40
�ʬ��p)�XJBs!}array(1) { ["id"]=> string(1) "1" }
Output for 5.4.39
� ����vcb��.�� marray(1) { ["id"]=> string(1) "1" }
Output for 5.4.38
!��9���3v $m�array(1) { ["id"]=> string(1) "1" }
Output for 5.4.37
7 rH��.�Z��*array(1) { ["id"]=> string(1) "1" }
Output for 5.4.36
��"�<폩��fwx�array(1) { ["id"]=> string(1) "1" }
Output for 5.4.35
�G�~�[�����array(1) { ["id"]=> string(1) "1" }
Output for 5.4.34
�5`�KE��4x�`�<~array(1) { ["id"]=> string(1) "1" }
Output for 5.4.32
�ڲY��[�EPT4array(1) { ["id"]=> string(1) "1" }
Output for 5.4.31
(Y���g��lorG�array(1) { ["id"]=> string(1) "1" }
Output for 5.4.30
� _�iXZ��$K��array(1) { ["id"]=> string(1) "1" }
Output for 5.4.29
�RNz���Y�H.�v�array(1) { ["id"]=> string(1) "1" }
Output for 5.4.28
x��Q�*�D���T�array(1) { ["id"]=> string(1) "1" }
Output for 5.4.27
>��(fC5�R��30[�array(1) { ["id"]=> string(1) "1" }
Output for 5.4.26
:�$�u���th��c�array(1) { ["id"]=> string(1) "1" }
Output for 5.4.25
�w���W�7FP�[�N�array(1) { ["id"]=> string(1) "1" }
Output for 5.4.24
[��1r��ÆhzpAarray(1) { ["id"]=> string(1) "1" }
Output for 5.4.23
�&lM�%��MY�+�narray(1) { ["id"]=> string(1) "1" }
Output for 5.4.22
&�+v��-���g�&array(1) { ["id"]=> string(1) "1" }
Output for 5.4.21
:D��H�N����[�ɤ�array(1) { ["id"]=> string(1) "1" }
Output for 5.4.20
� ��B�`�MbNarray(1) { ["id"]=> string(1) "1" }
Output for 5.4.19
��n�x�p�G�array(1) { ["id"]=> string(1) "1" }
Output for 5.4.18
{%�80 ҁ��=���array(1) { ["id"]=> string(1) "1" }
Output for 5.4.17
�ݟ�.w���'�U��array(1) { ["id"]=> string(1) "1" }
Output for 5.4.16
�|�R*���L�[���array(1) { ["id"]=> string(1) "1" }
Output for 5.4.15
��ζ�3��Žm@Ρarray(1) { ["id"]=> string(1) "1" }
Output for 5.4.14
7S�>��WJ�"�׮array(1) { ["id"]=> string(1) "1" }
Output for 5.4.13
� ��g��!;R�Z��6]array(1) { ["id"]=> string(1) "1" }
Output for 5.4.12
_h��z�I\���h�d; array(1) { ["id"]=> string(1) "1" }
Output for 5.4.11
<��<`B����/\v�array(1) { ["id"]=> string(1) "1" }
Output for 5.4.10
L��IN�K��\2��x7array(1) { ["id"]=> string(1) "1" }
Output for 5.4.9
?f�RJ$z�p�w�PuVarray(1) { ["id"]=> string(1) "1" }
Output for 5.4.8
�x&����X~��array(1) { ["id"]=> string(1) "1" }
Output for 5.4.7
g�T�B؆���r�]#�array(1) { ["id"]=> string(1) "1" }
Output for 5.4.6
�OE���D�{% ؞!�array(1) { ["id"]=> string(1) "1" }
Output for 5.4.5
v�P�]/c�����darray(1) { ["id"]=> string(1) "1" }
Output for 5.4.4
�yu{ ��\���Q9�array(1) { ["id"]=> string(1) "1" }
Output for 5.4.3
F[ W��e��4�array(1) { ["id"]=> string(1) "1" }
Output for 5.4.2
��h��J����Ħ�array(1) { ["id"]=> string(1) "1" }
Output for 5.4.1
�t�G9�V�\[��array(1) { ["id"]=> string(1) "1" }