Download PHP for PC, Windows 11/10 & Mac (Free)

The PHP download for Windows 11 and Windows 10 is a 34.4 MB zip from php.net. Extract it, add the folder to your PATH, and php runs from any terminal.

Macs install PHP with Homebrew, and Linux uses its own packages. PHP is free and open source on every platform.

This guide covers which zip to pick, Thread Safe versus Non Thread Safe, manual and winget installs, the Mac commands, updates and fixes for common errors.

PHP download card with version, size and supported systems
The Windows x64 Non Thread Safe zip is 34.4 MB and needs no setup program.

Which PHP download do you need for Windows?

php.net lists four Windows zips for each release. Two questions decide yours: 64-bit or 32-bit, and whether Apache loads PHP as a module.

Non Thread Safe (NTS) builds suit the command line, FastCGI and IIS. Thread Safe (TS) builds are for the Apache HTTP Server running PHP as a module.

You want to File to download Size
Run PHP from the command line, Composer or php -S on a 64-bit PC php-8.5.11-nts-Win32-vs17-x64.zip 34.4 MB
Load PHP as a module in Apache on 64-bit Windows php-8.5.11-Win32-vs17-x64.zip 34.5 MB
Run PHP through FastCGI on 32-bit Windows php-8.5.11-nts-Win32-vs17-x86.zip 30.9 MB
Load PHP in Apache on 32-bit Windows php-8.5.11-Win32-vs17-x86.zip 30.9 MB

php.net recommends the x64 builds because almost every Windows installation supports x64. There is no native ARM build of PHP for Windows.

PHP downloads page listing Windows zip builds with hashes
Each Windows zip on php.net shows its build date, size and a SHA-256 hash underneath.

Check the PHP system requirements before you install

PHP for Windows is a folder of files with no service and no installer. It needs one Microsoft runtime installed first.

Field Value
Software PHP
Developer The PHP Group
Latest version 8.5.11
Released 24 September 2026
License Free and open source, Modified BSD License
Windows Windows 8 or Windows Server 2012 or later for PHP 8.3 and newer, so Windows 10 and 11
Architecture x64 and x86 (32-bit); no ARM build
Runtime Visual C++ Redistributable for Visual Studio 2015-2022, matching x64 or x86
Mac Homebrew: brew install [email protected]
Linux Your distribution’s packages, such as sudo apt install php
Download size 34.4 MB for the x64 Non Thread Safe zip
Offline installer No setup program; the zip runs offline once extracted
Official download source php.net/downloads.php
Last verified 2026-09-25

Use the x86 runtime for the x86 PHP build and the x64 runtime for the x64 build. Mixing them stops php.exe from starting.

PHP manual page listing Windows requirements and build types
PHP 8.3 and newer need Windows 8 or later plus the matching Visual C++ runtime.

Download PHP from the official php.net page

The PHP project publishes Windows zips on downloads.php.net and links them from php.net. The old windows.php.net download address now redirects to the same php.net page.

  1. PHP downloads and install instructions — pick Windows, macOS or Linux and a version
  2. PHP 8.5.11 x64 Non Thread Safe zip — 36,048,897 bytes
  3. PHP 8.5.11 x64 Thread Safe zip — 36,180,745 bytes
  4. Visual C++ Redistributable x64 — Microsoft runtime PHP needs
  5. Visual C++ Redistributable x86 — for the 32-bit PHP builds
  6. Supported PHP versions — support end dates for every branch

Each zip name carries the version number, so a saved link keeps pointing at 8.5.11. Start from the downloads page when a newer release is out.

How to install PHP on Windows 11 and 10

Installing PHP means extracting the zip and telling Windows where php.exe lives. These steps use the Non Thread Safe x64 build and the folder C:\php .

  1. Download and run the Visual C++ Redistributable x64 from Microsoft, then click Install.
  2. Download php-8.5.11-nts-Win32-vs17-x64.zip from php.net.
  3. Right-click the zip in File Explorer and select Extract All.
  4. Set the destination to C:\php and click Extract.
  5. Copy php.ini-development inside C:\php and rename the copy to php.ini .
  6. Press Windows + R, type sysdm.cpl and press Enter.
  7. Open the Advanced tab and click Environment Variables.
  8. Select Path under User variables, click Edit, click New and type C:\php .
  9. Click OK on all three windows.
  10. Open a new Terminal window and type php -v to see the version.

Run php –ini to confirm PHP found your php.ini . For a quick test site, open a project folder in Terminal and run php -S localhost:8000 , then browse to http://localhost:8000 .

The built-in server is for development only. php.net warns against using it on a public network.

PHP manual page for the built-in development web server
Running php -S localhost:8000 serves a project folder for local testing only.

Install PHP with winget, Chocolatey or Scoop

php.net publishes a one-line command for each Windows package manager. Pick the one you already use.

  1. Open Terminal from the Start menu.
  2. For winget, which ships with Windows 11 and 10, run winget install PHP.PHP.8.5 . php.net labels this the Thread Safe build.
  3. For Chocolatey, run choco install php –version=8.5 -y once Chocolatey is set up.
  4. For Scoop, run scoop bucket add main and then scoop install main/php .
  5. Close Terminal, open a new window and run php -v to confirm the install.

Package managers put PHP on your PATH for you, which skips the manual Environment Variables steps above.

Choose between PHP 8.5 and PHP 8.4

php.net supports four branches at once. Each branch gets two years of bug fixes, then two years of security fixes only.

Install PHP 8.5 for new projects. Install 8.4 only when a framework, plugin or host has not certified 8.5 yet. PHP 8.5 receives active support until 31 December 2027 and security fixes until 31 December 2029. PHP 8.4 leaves active support on 31 December 2026, and PHP 8.2 stops receiving security fixes the same day.

PHP supported versions table with support end dates
Branch 8.5 gets security fixes until 31 December 2029, the longest of any current branch.

How to install PHP on a Mac with Homebrew

macOS shipped PHP from Mac OS X 10.0 until macOS Monterey, which dropped it. On a current Mac, php.net points you to Homebrew.

Your situation Run in Terminal Result
Homebrew is not installed yet Homebrew install command on php.net Adds the brew command
You want the current PHP 8.5 brew install [email protected] Installs PHP 8.5
php still reports an old or missing version brew link –force –overwrite [email protected] Puts PHP 8.5 first on your PATH

The same commands work on Apple silicon and Intel Macs. Type php -v in a new Terminal window to confirm the install.

PHP macOS instructions showing the Homebrew install commands
On macOS, brew install [email protected] followed by brew link puts the new version on your PATH.

Is PHP free?

Yes. PHP costs nothing to download, install or use, including on commercial websites.

Download PHP from php.net and pay nothing. PHP is released under the Modified BSD License, an OSI-approved open source license with no copyleft terms. There is no paid edition, trial or licence key.

A site asking money for a PHP setup file is reselling the free zip. Paid tools around PHP, such as IDEs and hosting, are separate products.

PHP licensing page describing the Modified BSD License
The Modified BSD License lets you use and redistribute the code commercially at no cost.

How to verify the PHP zip before you extract it

php.net prints a SHA-256 hash under every Windows zip. PowerShell checks it in one command.

  1. Confirm the download link starts with https://downloads.php.net/~windows/ .
  2. Open Terminal in your Downloads folder.
  3. Run Get-FileHash .\php-8.5.11-nts-Win32-vs17-x64.zip -Algorithm SHA256 .
  4. Compare the result with the hash under that zip on the PHP downloads page.
  5. Delete the file and download it again from php.net if the two values differ.

For the 8.5.11 x64 Non Thread Safe zip, the published hash begins 0ea96e0d2b9b737a .

How to check your PHP version and update it

A zip install never updates itself. You replace the files with the newer release.

  1. Open Terminal and type php -v .
  2. Compare the version with the newest one on the PHP downloads page.
  3. Download the matching newer zip for your build type.
  4. Rename C:\php to C:\php-old so your php.ini stays safe.
  5. Extract the new zip to C:\php and copy your php.ini back from C:\php-old .
  6. Open a new Terminal and run php -v again.

winget users can run winget upgrade PHP.PHP.8.5 instead. On a Mac, run brew upgrade [email protected] .

Fix PHP not working on Windows 11 or 10

Three errors cover most failed first runs. Find yours and follow its fix.

‘php’ is not recognized as an internal or external command

The PHP folder is not on your PATH, or the terminal opened before you added it.

  1. Confirm php.exe sits directly inside C:\php , not in a nested folder.
  2. Add that exact folder under Environment Variables > Path.
  3. Close every terminal window and open a new one.

VCRUNTIME140.dll was not found

The Visual C++ Redistributable is missing, or its bitness does not match PHP.

  1. Install the x64 runtime for x64 PHP, or the x86 runtime for x86 PHP.
  2. Run php -v again.

Apache refuses to load the PHP module

A Non Thread Safe build was installed, and Apache’s module mode needs Thread Safe.

  1. Download the x64 Thread Safe zip.
  2. Extract it to a fresh folder and point Apache’s configuration at it.
  3. Restart Apache.

How to uninstall PHP from Windows

A zip install has no uninstaller. Removing the folder and the PATH entry is the whole job.

  1. Stop any web server or terminal using PHP.
  2. Delete the C:\php folder.
  3. Press Windows + R, type sysdm.cpl and open Advanced > Environment Variables.
  4. Select Path, click Edit, select the C:\php entry and click Delete.
  5. Click OK on all three windows.

If you used winget, run winget uninstall PHP.PHP.8.5 instead. Your project files stay where you saved them.

Choose another way to run PHP

The plain zip suits most developers. Pick another route when you need a database, a container, or a Linux-identical setup.

Option Best for Where it comes from
PHP zip from php.net Command line, Composer, php -S php.net
winget, Chocolatey or Scoop One-command installs and upgrades Commands listed on php.net
Docker image Matching a production container Docker Desktop
WSL with Debian or Ubuntu A Linux PHP on a Windows PC sudo apt install php, per php.net
PHP plus MySQL A local database-backed site MySQL for Windows

Pair any of them with an editor such as Visual Studio Code for PHP syntax highlighting and debugging.

Frequently asked questions

Is PHP free?

Yes. PHP is free and open source under the Modified BSD License, also called the PHP License version 4. You can use it for personal and commercial projects without paying anything or registering. Any site selling a PHP installer is reselling a free download.

What is the official PHP download page?

The official page is php.net/downloads.php. Pick Windows, macOS or Linux, choose a version, and it shows the Windows zip files or the exact install commands for your system. Windows zips are served from downloads.php.net.

Which PHP download should I get for Windows?

Get the VS17 x64 Non Thread Safe zip for the command line, Composer, the built-in server or IIS. Get the x64 Thread Safe zip only when you run PHP as an Apache module. The 32-bit x86 zips suit old 32-bit systems only.

Does PHP work on Windows 11?

Yes. PHP 8.3 and newer need Windows 8 or Windows Server 2012 or later, so Windows 11 and Windows 10 both run PHP 8.5. Install the Visual C++ Redistributable first, then extract the zip and add its folder to PATH.

How big is the PHP download for Windows?

The PHP 8.5.11 x64 Non Thread Safe zip is 36,048,897 bytes, about 34.4 MB. The Thread Safe x64 zip is 34.5 MB, and the 32-bit x86 zips are about 30.9 MB each.

Is there a PHP installer or offline setup for Windows?

No setup program exists. The Windows download is a zip archive you extract, and it runs offline afterwards. The winget, Chocolatey and Scoop commands on php.net automate the same download and need an internet connection.

How do I install PHP on a Mac?

Install Homebrew, then run brew install [email protected] and brew link –force –overwrite [email protected] in Terminal. macOS Monterey and later no longer include PHP, so a Homebrew install is the route php.net shows for current Macs.

Is there a 64-bit or ARM64 version of PHP for Windows?

PHP for Windows comes in x64 (64-bit) and x86 (32-bit) builds. php.net recommends x64 for almost every PC. The Windows install documentation lists x86 and x64 only, with no native ARM build.

Is PHP safe to download?

Yes, from php.net. The download page lists a SHA-256 hash under every Windows zip, so you can confirm your file matches before you extract it. Avoid bundled installers from download portals.

What is the latest version of PHP?

PHP 8.5.11, released on 24 September 2026. The same day brought 8.4.26, 8.3.35 and 8.2.34 for older branches. PHP 8.5 gets active support until 31 December 2027 and security fixes until 31 December 2029.

Why does Windows say php is not recognized?

The PHP folder is not on your PATH, or the terminal was open before you added it. Add the exact folder that holds php.exe, such as C:\php, under Environment Variables, then close every terminal and open a new one.

Philip Celasco

Philip is a Texas-based technology writer and IT administrator at Techdows.com with more than 10 years of experience creating practical content for everyday users and professionals. He specializes in web browsers, particularly Chromium-based platforms such as Google Chrome, Microsoft Edge, Brave, and Opera. Through his work as an IT administrator, Philip has hands-on experience managing devices, configuring browser policies, troubleshooting software and network issues, and helping people resolve problems that affect productivity and security. His articles are based on practical testing and real-world technical experience. He covers browser settings, extensions, performance problems, privacy controls, security features, and Windows troubleshooting. Outside work, Philip enjoys the quieter side of life in Texas and stepping away from the screen when he can. He has two kids, two cats and loves to play golf with his mother during the weekends.

Leave a Reply

Your email address will not be published. Required fields are marked *