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 base64_decode($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/H47bZ:7 Stack trace: #0 {main} thrown in /in/H47bZ on line 7
Process exited with code 255.
Output for 7.0.5
'����
Output for 7.0.4
���[�
Output for 7.0.3
��1��
Output for 7.0.2
"��0�
Output for 7.0.1
)ҙ�n<<$
Output for 7.0.0
�Aj�.
Output for 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_create_iv() in /in/H47bZ on line 7
Process exited with code 255.
Output for 5.6.20
���
Output for 5.6.19
�Լb,� �
Output for 5.6.18
V���
Output for 5.6.17
�$�
Output for 5.6.16
��-�3Q
Output for 5.6.15
~g�_
Output for 5.6.14
�b���
Output for 5.4.36, 5.4.45, 5.6.8, 5.6.13
Output for 5.6.12
"�o�
Output for 5.6.11
�|�
Output for 5.6.10
���
Output for 5.6.9
�Ȯ�
Output for 5.6.7
��M��[�
Output for 5.5.34
}����
Output for 5.5.33
��Y�
Output for 5.5.32
��V��B
Output for 5.5.31
�hc��j�
Output for 5.5.30
Q/��k
Output for 5.5.29
л�
Output for 5.5.28
�6�
Output for 5.5.27
�[f_�>�<`
Output for 5.5.26
�?���
Output for 5.5.25
d�
Output for 5.5.24
�૪
Output for 5.4.44
ݬR��
Output for 5.4.43
��`��
Output for 5.4.42
Ky�
Output for 5.4.41
�c�f
Output for 5.4.40
⊓/�
Output for 5.4.39
;k!a���
Output for 5.4.21, 5.4.38
��
Output for 5.4.37
nq@
Output for 5.4.35
~73
Output for 5.4.34
$VBp
Output for 5.4.32
L���g
Output for 5.4.31
҃�s�
Output for 5.4.30
E�2Z
Output for 5.4.29
����W
Output for 5.4.28
_���lA�
Output for 5.4.27
'�
Output for 5.4.26
��'k"
Output for 5.4.25
�ѭ[L
Output for 5.4.24
K3��x��
Output for 5.4.23
��L[
Output for 5.4.22
m|�����2
Output for 5.4.20
Ύ��
Output for 5.4.19
���
Output for 5.4.18
��ɫ��
Output for 5.4.17
nfDJ
Output for 5.4.16
�l9r��
Output for 5.4.15
��"�ko�r
Output for 5.4.14
���m�Y�
Output for 5.4.13
��:m
Output for 5.4.12
K�;4
Output for 5.4.11
2b�J
Output for 5.4.10
�iH
Output for 5.4.9
�R�
Output for 5.4.8
���
Output for 5.4.7
�,�����
Output for 5.4.6
3P�u��
Output for 5.4.5
B��
Output for 5.4.4
B�6P��Dw
Output for 5.4.3
U��H��
Output for 5.4.2
�Z��5�
Output for 5.4.1
e�� A� �A�
Output for 5.4.0
o�Bs�0�

preferences:
201.46 ms | 401 KiB | 259 Q