# Getting PHP 7

> Section in “Introduction” of the book [PHP 7 Explained](https://php7explained.com/) by Sebastian Bergmann and Stefan Priebsch, published by thePHP.cc. The book covers PHP 7.0 to 7.4 and was last updated in November 2020. HTML version: <https://php7explained.com/introduction/getting-php-7/>

## In this section

- [RHEL and CentOS](https://php7explained.com/introduction/getting-php-7/rhel-and-centos/index.html.md): RHEL 8 and CentOS 8 ship with PHP 7.2; the dnf commands shown add the package repository of Remi Collet and upgrade to PHP 7.4.
- [Fedora](https://php7explained.com/introduction/getting-php-7/fedora/index.html.md): Fedora 32, the current version of this RPM-based Linux distribution at the time of writing, ships with PHP 7.4 by default.
- [Debian](https://php7explained.com/introduction/getting-php-7/debian/index.html.md): Debian 10.3 ships with PHP 7.3; the apt-get commands shown add the package repository of Ondřej Surý and upgrade to PHP 7.4.
- [Ubuntu](https://php7explained.com/introduction/getting-php-7/ubuntu/index.html.md): Ubuntu 20.04, the current version of this DEB-based Linux distribution at the time of writing, ships with PHP 7.4 by default.
- [macOS](https://php7explained.com/introduction/getting-php-7/macos/index.html.md): Installing PHP 7.4 on macOS with the two most common package managers, using brew install php74 for Homebrew or port install php74 for MacPorts.
- [Microsoft Windows](https://php7explained.com/introduction/getting-php-7/microsoft-windows/index.html.md): The PHP Project provides official 32-bit and 64-bit binaries of PHP for Microsoft Windows at windows.php.net, along with installation instructions.
- [A Note on PEAR](https://php7explained.com/introduction/getting-php-7/a-note-on-pear/index.html.md): PEAR has been superseded by Composer, and the PEAR Installer is only installed when building PHP from source if --with-pear is passed to configure.

---

Previous: [Debugger](https://php7explained.com/introduction/behind-the-scenes/debugger/index.html.md) | Next: [RHEL and CentOS](https://php7explained.com/introduction/getting-php-7/rhel-and-centos/index.html.md)
