3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 'FSHcT+sfRO/siok2ooweuA=='; $key = base64_decode($key); $message = 'I want to decode this'; $iv = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM); $encrypted = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $key, $message, MCRYPT_MODE_CBC, $iv); $decrypted = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $encrypted, MCRYPT_MODE_CBC, $iv); print $encrypted; ?>
Output for 7.0.6 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught Error: Call to undefined function mcrypt_create_iv() in /in/FkYAM:7 Stack trace: #0 {main} thrown in /in/FkYAM on line 7
Process exited with code 255.
Output for 7.0.5
��Na���}Y/�^"�$Ѯ+���5r;��dn
Output for 7.0.4
8�m�$��P����� z~�3OԾp�Γ�Ύ$
Output for 7.0.3
�{4�+�)��f����Ҡ5�="��h�TR
Output for 7.0.2
$Rh^�$� �Ҙ\Oa�����x0P�&o�s�
Output for 7.0.1
X�7W�qUx�7�D�� ���N,�a5Zg�}P
Output for 7.0.0
����p�̅��|��'���_פB��y��R
Output for 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_create_iv() in /in/FkYAM on line 7
Process exited with code 255.
Output for 5.6.20
��A����ֈ��u�U��i�y�����\
Output for 5.6.19
��OB�'/G���A)��� )τ>漊TӍ�
Output for 5.6.18
����3[� �j�I�QLIey�*��z�8���+
Output for 5.6.17
�L�y Cs��u�];ى.����X�M��8׳B
Output for 5.6.16
tӛ�O�v��� Z�@x\�0���M*
Output for 5.6.15
���>R�U:z��u=x���,�����q��
Output for 5.6.14
���N�I��F�J����<j�C��D�_��U F>
Output for 5.6.13
qz�j?�?�G�T��o̸��7���5��k�c�
Output for 5.6.12
�;y���i��� ���F%*���D���€���T
Output for 5.6.11
�ٜ�>�C�LK�[ܐ�a�J'ۧ�x�(���
Output for 5.6.10
��{��[X�0$���2ץ�K��8� �� �
Output for 5.6.9
���� �[Hx�V�SI��y�݀T#�4�0w4y�Y
Output for 5.6.8
W7H��U�W Ѓ �7.(��t��&"|�4ܡ
Output for 5.6.7
b��U�l]��,�V� �J ���4�z{:�ᷰa)
Output for 5.5.34
}Y�����#�������s���`��
Output for 5.5.33
6d�j�x�e�mZ�0�g8#y6[6-��C
Output for 5.5.32
{ӯ5�ť��'�. ���/� H��7��s�
Output for 5.5.31
����V�q_/���UjmO7d,c�V1��[Z���
Output for 5.5.30
#/s_訧�Gk�^�!w�f���<8� �ŧk
Output for 5.5.29
�� /Z��?)�v���fUi��zz���#T
Output for 5.5.28
{Ρ;à�U$h�P��k���?�zU��
Output for 5.5.27
E�*h�� �\��Ǖ�Q��1x�d��ӕzP�
Output for 5.5.26
7���綠M�4H �"�#^i���/�Q'�=�
Output for 5.5.25
���_~؋IJ�p����f�,�j��9�=��V
Output for 5.5.24
�> �5K���t��É �-f𔙚� 8��6?
Output for 5.4.45
/��A60�����)J��B��c"e����b=��
Output for 5.4.44
���8wn-S�_�����Xh�?��攗 ����
Output for 5.4.43
�$�|6=G�đ%��T)������Cµ���[�(
Output for 5.4.42
me�=�;�`�j�d ~wQ�O� �2/|�
Output for 5.4.41
��*������E��)���]0��U?Y51 ;��mu
Output for 5.4.40
�,e�����)����"ڸ��p8� ��
Output for 5.4.39
��VH�g-� *�\B^��A\y=�*�x�
Output for 5.4.38
�ê;L�k�m��. ����� ;�:i�"ۤ�T
Output for 5.4.37
@Zj"h�Ђ�b�~ZR�N"iӸP� `�!����M
Output for 5.4.36
_���_��dō0 U���@�*`n�|�-Ʊ�
Output for 5.4.35
0���]o�}� �ê�P���L=dw-z �u�k
Output for 5.4.34
�*j�|›�3�� Իv�BL��`-G�~ȅD�
Output for 5.4.32
�ʈ�X�L�0�Qj��Er#��3��kـR�
Output for 5.4.31
f�<�����F ��Vt�NF1 e:'�pAz
Output for 5.4.30
u�R��b �r�����!:L���7��#���
Output for 5.4.29
Ɇ`y0࿰J5�o����� K�3�k����C3�
Output for 5.4.28
nN�rP�_z��Z� L�=�9�� y��Z
Output for 5.4.27
�li���A.��N�+�yJM{2����c�\
Output for 5.4.26
�ɥ������;1fI�]I����]/ֺ�����
Output for 5.4.25
(�}}=��2�G�Zт�^D3�1��ٰ2
Output for 5.4.24
f��ҹ�`�F���je�Bs_���,�u@�`�
Output for 5.4.23
P'��J" �n9���oEL�!����.x��
Output for 5.4.22
a�,���S�;���:�V�[���u��TĘ
Output for 5.4.21
���o�\~Ț�IJ�u�������U�Ra
Output for 5.4.20
��>$��$P��4Ew� ��h������U%`
Output for 5.4.19
�; ��Ry�"����"Ѥ=��|}q�/�Y50q
Output for 5.4.18
��6*�D?&"ؒ�areY� r~ `�b�
Output for 5.4.17
�PY� ��2�?ؿ�Ԯ֦���E~�>�
Output for 5.4.16
���Z�[g%]y�*���\�� $ܲd,ƌ��r�
Output for 5.4.15
�P;'*} ��*waA�)��F��t�j_Ck��
Output for 5.4.14
> uO�wF����)1������R��⺼*�
Output for 5.4.13
��`63�<FYB��y���F˭К�u�砢�
Output for 5.4.12
tk�R��\ڕ�l�֬ґ���d�kB�����
Output for 5.4.11
U�{��Zd]V�Ǖ}�L���H/�0 RE��
Output for 5.4.10
�۫�>�*�� ���)H�:�IU�sUy
Output for 5.4.9
�!P��~9={ u�Z�i9a��ܔϝ��<V>
Output for 5.4.8
����׵����1;&�Mz���H�Rw��%

preferences:
191.3 ms | 401 KiB | 251 Q