First and foremost, visit the URL to download PHP, especially if you are using a Windows operating system.
After successfully downloading the file, extract the ZIP archive. Next, rename php.ini-production to php.ini as outlined below:
Next, copy all the files and folders into a directory such as C:\xampp\php (you can reuse this location if you have previously installed XAMPP).
Proceed to modify the php.ini file at a specified location and unlock all necessary DLL extensions for PHP to prevent unnecessary errors.
...
extension=curl
extension=ffi
extension=ftp
extension=fileinfo
extension=gd
extension=gettext
extension=gmp
...
; Windows: "\path1;\path2"
include_path = "c:\xampp\php\includes"
; On windows:
extension_dir = "c:\xampp\php\ext"