PHP 8 will be released today!
If you have anything to discuss or ask about PHP 8, or if you want to express how you feel about the new release; then you’re free to share those thoughts with the community in this thread! We’ll keep it stickied for a week or so.


Enjoy PHP 8!
FYI It’s released! https://www.php.net/releases/8.0/en.php
They announced the end of Windows builds for PHP 8, but Windows PHP is showing a PHP 8 build. Did they reverse the decision, or is someone else now compiling the Windows builds?
Any idea of timeline for extensions (I’m thinking mostly about APCu) ?
Trying to compile it on my Apple M1 (arm64) and it seems to compile the cgi and cli executables just fine, but then runs into a pretty opaque error. This coming just after a default configure && make:
Any clues?
Edit: compiling the HEAD version from homebrew does seem to work, so I just need to copy whatever incantations homebrew is using. Given that the bus error seems to be coming directly from make, not sure there’s much the core team can do…
Yikes. So odd that it’s occurring during the phar.phar build of all places.
Please report a bug on bugs.php.net along with your config.log and the values for PHP_PHARCMD_SETTINGS and PHP_PHARCMD_BANG from your generated Makefile.
Edit to add: If anyone wants to buy me an M1 mac to test this stuff out on… just sayin’ 🙂
Any news when it might become available on Homebrew?
I use https://github.com/shivammathur/homebrew-php for now to install PHP 8.
No idea of time-line, but here is the PR https://github.com/Homebrew/homebrew-core/pull/65698
Any news when a “php:8.0-fpm” docker image will be available?
They’re usually a few days behind. Last I asked about official docker images, someone indicated they’re “official from Docker” not “official from PHP”.
Realistically you can play with the RC5 online and swap in the right base when it’s available. I’ve been doing that steadily since the alphas to try prepping for today. Only one actual code issue, and a bunch of dealing with dependencies.
a lot of love to php8
Really looking forward for https://wiki.php.net/rfc/pattern-matching 🤞🤞🤞
UPD: It’s not a part of 8.0 release.
UPD: It allows you to write things like:
I don’t like this syntax. Mostly all uses are more readable in classic way. Literal pattern and object property pattern are ridiculous.
Damn that looks really cool, especially the future scope.
This is not part of PHP 8.0 🙂


The part that is in PHP 8.0 is https://wiki.php.net/rfc/match_expression_v2.
Will it be instantly available on Linux package managers? Aptitude specifically
use the Debian DPA or Ubuntu PPA from Ondrej Sury https://deb.sury.org/ he is the official package maintainer of Debian/Ubuntu for PHP. The main repo’s won’t have it any time soon, if you use his additional repo’s you have it available
Most distro’s will only upgrade major php versions when releasing a new version of their os. So with Ubuntu 21.04 you’ll get php 8 for instance.
There are 3rd party repositories that will have php 8 packages for Ubuntu and other distro’s very soon though.
If you’re running rolling release distro like Arch then it’ll go into testing and be released shortly.
Members
Online

source