Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

PHP.net:
PHP 7.1.18 Release
May 28, 2018 @ 11:26:01

The official PHP.net site has posted an announcement about the latest release in the PHP 7.1.x series: PHP 7.1.18.

The PHP development team announces the immediate availability of PHP 7.1.18. All PHP 7.1 users are encouraged to upgrade to this version.

A few bugs were fixed in this release including issues in FPM handling, internationalization functionality and Opcache. You can see the full changelog here and, as always, download the latest version either from the main downloads page or windows.php.net for the Windows binaries.

tagged: language release bugfix php71

Link: http://php.net/index.php#id2018-05-25-1

Frank de Jonge:
Array destructuring in PHP
May 01, 2018 @ 09:48:15

Frank de Jonge has a post to his site sharing some helpful hints around the use of arrays in PHP. In this quick post he covers some of the array "superpowers", list assignments and nested destructuring.

One of the things I like the most about JavaScript, and PHP also to some extent, is how flexible and expressive they CAN be (but not always are). I also believe that JavaScript, PHP, and Python have a number of features that make them a good fit for serving the forefront of the web.

[...] The most versatile type of PHP, to me, is the array. The array can be used to act like many different classic data types. You can use them as a List, a Set (although that requires some specific handling), a HashMap, just to name a few.

He starts with the "superpowers" that arrays gained in PHP 7.1 (the square bracket syntax for destructuring) and some code examples showing it in action. He then moves on to show how this update works for list assignment. He finishes up the list with a look at nested destructuring and referencing values from subarrays with this same square bracket syntax.

tagged: array destructure language square bracket php71 tutorial

Link: https://blog.frankdejonge.nl/array-destructuring-in-php/

PHP.net:
PHP 7.1.17 & 5.6.36 Released (Bugfix)
Apr 30, 2018 @ 11:03:24

On the main PHP.net site they've announced the release of the next versions in the PHP 5.6 and 7.1 series:

Both are bugfixes for their respective versions and are bugfix releases with several issues corrected in the Exif, LDAP, Phar and iconv handling. It is recommended that you upgrade to either of these releases to correct these issues.

As always, you can download these latest releases either from a mirror on the main downloads page or windows.php.net for the Windows executables.

tagged: language release bugfix php56 php71

Link: http://php.net/index.php#id2018-04-26-3

PHP.net:
Multiple Versions Released - 7.1.15, 5.6.34 & 7.2.3
Mar 05, 2018 @ 12:43:35

The main PHP.net site has posted the announcement(s) of the release of updates for the three supported versions of the language: 7.1.15, 5.6.34 & 7.2.3.

The PHP development team announces the immediate availability of PHP 7.1.15, 5.6.34 and 7.2.3. This is a security fix release, containing one security fix and many bug fixes. All [PHP] users are encouraged to upgrade to this version.

Fixes include changes to the DateTime handling, LDAP connectivity, Phar construction, PostgreSQL issues and changes to the SPL. You can get these latest versions either from the main downloads page or on windows.php.net for the Windows binaries.

tagged: multiple version release php71 php72 php56 security bugfix

Link: http://php.net/archive/2018.php#id2018-03-02-1

Kinsta Blog:
The Definitive PHP 5.6, 7.0, 7.1, 7.2 & HHVM Benchmarks (2018)
Feb 28, 2018 @ 13:18:38

The Kinsta blog has published an article they call the Definitive PHP 5.6, 7.0, 7.1, 72. and HHVM benchmarks providing a comparison between these different versions running different popular PHP software (including WordPress, Drupal and Magento 2).

Each year we try and take a deep dive into performance benchmarks across various platforms and see how different versions of PHP and HHVM stack up against each other. This year we went all out and benchmarked four different PHP engines and HHVM across 20 different platforms/configurations; including WordPress, Drupal, Joomla!, Laravel, Symfony, and many more. We also tested popular eCommerce solutions such as WooCommerce, Easy Digital Downloads, Magento, and PrestaShop.

[...] The results this year have drastically changed from our previous benchmarks where HHVM was the winner. We now are excited to see PHP 7.2 as the leading engine in terms of speed. [...] This is great news for developers and end-users alike as it means more of a focus back on PHP and providing faster websites and web services for everyone.

The post then starts with a look at the system setup (well, Google Cloud instance) that's used for the testing and how it is configured. From there it goes into the test results from each of the different types of software:

  • WordPress
  • Drupal
  • Joomla!
  • Magento 2
  • Grav CMS
  • October CMS
  • Laravel
  • Symfony
  • PyroCMS
  • Pagekit
  • Bolt
  • AnchorCMS
  • PrestaShop
  • CraftCMS
  • ForkCMS

As you can see there's more of a leaning towards content management and e-commerce solutions in their list. It's good to see base frameworks in the list too, however. For each item in the list they provide a graph of the results showing requests per second.

tagged: benchmark php71 php72 hhvm php56 php70 software compare

Link: https://kinsta.com/blog/php-7-hhvm-benchmarks/

PHP.net:
PHP 7.1.14 Released
Feb 06, 2018 @ 12:39:41

On the main PHP.net site today there's an announcement about the latest release in the PHP 7.1.x series: PHP 7.1.4.

The PHP development team announces the immediate availability of PHP 7.1.14. This is a bugfix release. Several bugs were fixed in this release.

All PHP 7.1 users are encouraged to upgrade to this version.

Fixes in this latest release include changes to FastCGI handling, IMAP functionality, RecursiveArrayIterator in the SPL and a connection fix for PostgreSQL. You can see the full list of changes and their related bugs in the full Changelog. This version is available for download form the usual locations: the main downloads page for the source packages and windows.php.net for the Windows binaries.

tagged: language release bugfix php71

Link: http://php.net/index.php#id2018-02-01-2

Freek Van der Herten:
How to upgrade from PHP 7.1 to 7.2 on MacOS using Homebrew
Feb 02, 2018 @ 10:55:29

Those on OSX using PHP via Homebrew may be wondering how they can upgrade their systems to the latest version of the language, PHP 7.2. Fortunately, as Freek Van der Herten shows in this new post the upgrade process is just a few quick commands away.

PHP 7.2 was released almost two months ago. I decided to wait a bit until a stable version of Xdebug with PHP 7.2 compatibility was available. And that happened yesterday with the release of Xdebug 2.6.

To make the switch over to PHP 7.2 from 7.1 (or really any other PHP version) it's a simple matter of unlinking the current version and installing PHP 7.2 with the matching Xdebug package. He also includes the commands for installing the packages for Imagick and Redis handling.

tagged: php71 php72 upgrade homebrew install unlink command tutorial

Link: https://murze.be/how-to-upgrade-from-php-71-to-72-on-macos-using-homebrew

PHP.net:
Multiple Versions Released - 5.6.33, 7.1.13, 7.2.1 and 7.0.27
Jan 05, 2018 @ 10:16:17

On the [main PHP.net site]http://php.net/() today they've announced the release of new released of all currently supported versions of the language:

All of these releases contain similar bugfixes correcting security issues reported in the language including problems in the CLI server, Phar handling, Zip functionality and the Opcache feature. It is suggested to update to these latest versions as soon as possible to prevent issues with these bugs.

As always you can download the source versions of these latest releases from the main downloads page or the Windows binaries from windows.php.net. If you're interested in the changes made, check out the Changelogs for PHP 7 and PHP 5.6.

tagged: version release language php56 php71 php72 security bugfix

Link: http://php.net/downloads

PHP.net:
PHP 7.1.12 Released
Nov 28, 2017 @ 11:16:22

On the main PHP.net site they've posted an announcement about the latest release in the PHP 7.1.x series: PHP 7.1.12:

The PHP development team announces the immediate availability of PHP 7.1.12. This is a bugfix release, with several bug fixes included. All PHP 7.1 users are encouraged to upgrade to this version.

Bugs in this released include issues in PHP's CLI handling, GD image manipulation, internationalization and reflection with Mysqli. You can find the full listing of issues fixed in the full Changelog. As always you can download this latest release from the main downloads page for the source packages and windows.php.net for the Windows binaries.

tagged: language release php71 bugfix upgrade

Link: http://php.net/index.php#id2017-11-24-1

PHP.net:
Releases for PHP 5.6.32, 7.0.25, 7.1.11 and 7.2.0 RC 5
Oct 27, 2017 @ 10:53:12

The PHP.net has announced the release of several new versions of the language including a few bugfix versions for stable releases and the latest Release Candidate for the upcoming PHP 7.2.0. The versions that have been released are:

Most of these releases take care of similar bugs found across the different releases with some differences between them. While the others are production releases and it is recommended that you upgrade to those where possible, the Release Candidate is pre-production and should not be considered stable yet.

You can download the stable releases from the downloads page for source or windows.php.net for the Windows binaries. The Release Candidate can be downloaded from the source package QA site or the Windows QA site for the binaries.

tagged: language release bugfix releasecandidate php56 php71 php70 php72rc5

Link: http://php.net