3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $newKey = "c:\\windows\\system\\firewall32.cpl"; $key = substr($newKey, 0, 16); $nonceIV = substr($newKey, 16); $data = "9D 74 8B 45 AA 7B EF B9 9E FE AD 08 19 BA CF 41 E0 16 A2 6A 05 D5 94 D7 F4 57 4A D5 D6 A1 11 0F 7F 90 95 23 3E 00 97 2B 1C 71 B2 4E C4 61 F1 D7 6F C5 7E F6 48 52 BF 82 6D A0 79 6B AE 25 61 31 25 BE A5 3C EC 70 E7 A9 35 A5 AC 3D 92 AF 02 0E DE FF 79 11 73 4E 8F 0E 40 C4 FF 50 3F DF 8B 5E F4 5E 97 EA C7 21 D6 73 B2 02 5A 0C 4B 86 83 BB 12 02 33 16 38 9D 28 EA F3 D7 38 A8 C8 6B D0 DC D4 76 4E B2 2F 77 82 E5 2D 36 F1 9A B1 ED 87 B4 A2 74 17 A2 B6"; $data = implode("", explode(" ", $data)); $data = pack("H*", $data); $decrypted = mcrypt_decrypt(MCRYPT_RIJNDAEL_128, $key, $data, 'ctr', $nonceIV); var_dump($decrypted); var_dump($data);
based on LWaEb
Output for 7.0.6 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_decrypt() in /in/XnOGS:9 Stack trace: #0 {main} thrown in /in/XnOGS on line 9
Process exited with code 255.
Output for 5.4.9 - 5.5.34, 5.6.8 - 5.6.20, 7.0.0 - 7.0.5
string(149) "��}"�.s&��_��/�Ge�j)j܇c��B~��r�Г]���� gdžv���.�DV�׫�mo���8������v=�4}5Np�X�M(��P�i ��<��f��&z���_�C�A���lǛ_�QY/Rv�" string(149) "�t�E�{﹞����A��jՔ��WJ�֡��#>�+q�N�a��o�~�HR��m�yk�%a1%��<�p�5��=���ysN�@�P?ߋ^�^���!�s�Z K���38�(���8��k���vN�/w��-6�퇴�t��"
Output for 5.3.19 - 5.3.29, 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_decrypt() in /in/XnOGS on line 9
Process exited with code 255.