1First, you should download the suitable version for your system from here: https://pecl.php.net/package/mcrypt/1.0.3/windows
2
3Then, you should copy php_mcrypt.dll to ../xampp/php/ext/
4and then enable the extension by adding extension=mcrypt to your xampp/php/php.ini file.
5
6It works for me.