- Is your system a 64 or 32 bit machine.
- Are you planning to use IIS or Apache as the web server.
For 64 bit systems the x64 file should be downloaded. If you plan to use IIS then get the Non Thread Safe (NTS) version otherwise use the Thread Safe (TS) version.
The PHP 8 binaries require to have the Visual C++ Redistributable for Visual Studio 2015-2019 be installed as well.
The below table links to the appropriate section where you will find the Zip archive to download as well as the appropriate VC redistributable executable.
|Architecture||Internet Information Services (IIS)||Apache||VS16|
|32 Bit||VS16 x86 Non Thread Safe||VS16 x86 Thread Safe||VS16 x86|
|64 Bit||VS16 x64 Non Thread Safe||VS16 x64 Thread Safe||VS16 x64|
Download and Installation
- Download the Visual C++ Redistributable for Visual Studio 2015-2019 executable and install it.
- Download the appropriate PHP 8 Zip archive for your Windows system.
- Extract the Zip archive into a folder called php in your user folder. This should result in a folder at
In order to run the PHP executable from the command line the path to where the Zip archive was extracted to needs to be added to the Windows Path environment variable.
- Right click on the start menu and select System.
- Type Control Panel into the search field and select the Control Panel option when it appears.
- Click System and Security and then the System option.
- Click Advanced system settings from the left side menu to bring up a dialog box.
- Select the Advanced tab and then click Environment Variables.
- Select the Path option from the User variables list and click Edit.
- Click New and enter the path to where you extracted the Zip archive. This should be
C:\Users\[username]\php. You can also click Browse instead and navigate to the folder.
- Click OK to close the Edit environment variable dialog.
- Click OK again to close the Environment Variables dialog.
- Click OK for a third time to close the System Properties dialog.
Open up either PowerShell or the Command Prompt and enter
php -v to verify that PHP was installed correctly. You should see output similar to that shown below.
C:\Users\dev>php -v PHP 8.0.1 (cli) (built: Jan 5 2021 23:43:33) ( NTS Visual C++ 2019 x64 ) Copyright (c) The PHP Group Zend Engine v4.0.1, Copyright (c) Zend Technologies