Skip links

How to Download & Install PHP 8 on Windows 10 and Windows 11

Download & Install PHP 8

  • Head to php.net
  • Click Download button
  • Click Windows Downloads
  • Download Thread safe 32/64 bit zip package for your system type
  • Extract the zip package
  • Paste the extracted folder onto your desired drive (C?D?E?)
  • Rename this folder to php8
  • One this folder and look for php.ini-development file
  • Make a copy of this file and rename copy version to php.ini
  • Open php.ini file with your preferred text editor and uncomment extension_dir = ‘/’ and change to extension_dir = “ext”
  • Save the file and close the editor.

Set PHP 8 to System’s Path

  • Open php8 folder and copy and folder path
  • Press Windows Key on your keyboard and type ‘variable’ and hit Enter
  • Click Environment Variables
  • Click Edit and Click NEW on the right
  • Paste the php8 folder path
  • Click OK, OK, OK

Verify PHP Version

  • Launch Command Prompt
  • Type php -v

Leave a comment