installphp.info


← Back to home page

Install PHP 7.3 on Windows 11

Warning! This PHP version is end-of-life!

PHP 7.3 reached end of life on 06 Dec 2021 and is no longer being updated. It's strongly recommended to upgrade to the latest version as soon as possible. You can read the official PHP migration guide here.

Installing PHP 7.3 on Windows 11

Prerequisites

  • Windows 11 operating system
  • Administrator access to your computer
  • Stable internet connection
  • Web server software (e.g., Apache or IIS) installed (optional)

Installation

  1. Visit the official PHP downloads page: https://windows.php.net/download#php-7.3
  2. Download the PHP 7.3 ZIP package for Windows (select the appropriate version: x86 or x64)
  3. Create a new folder in your C: drive named "php"
  4. Extract the contents of the downloaded ZIP file into the C:\php folder
  5. Open the Windows Control Panel and navigate to System > Advanced system settings
  6. Click on "Environment Variables" and edit the "Path" variable
  7. Add "C:\php" to the list of paths
  8. Rename the "php.ini-development" file in the C:\php folder to "php.ini"
  9. Open php.ini in a text editor and uncomment the required extensions by removing the semicolon (;) at the beginning of the line
  10. Save the changes and close the file

Verification

  1. Open Command Prompt
  2. Type "php -v" and press Enter
  3. If PHP 7.3 is installed correctly, you should see output similar to:
    PHP 7.3.x (cli) (built: ...) ( NTS )
    Copyright (c) 1997-2018 The PHP Group
    Zend Engine v3.3.x, Copyright (c) 1998-2018 Zend Technologies
  4. To test PHP with a web server, create a file named "info.php" in your web server's document root with the following content:
    <?php phpinfo(); ?>
  5. Access the file through your web browser (e.g., http://localhost/info.php)
  6. If successful, you should see the PHP information page displaying details about your PHP 7.3 installation