
Did you know that PHP’s userland lets you change a readonly property multiple times? Or that you can modify an enum’s value? Or even change internal object properties that should never be changed? Let me show you some truly cursed PHP tricks.

Did you know that PHP’s userland lets you change a readonly property multiple times? Or that you can modify an enum’s value? Or even change internal object properties that should never be changed? Let me show you some truly cursed PHP tricks.

The smaller features in PHP 8.5 that may not make headlines but definitely deserve a mention.

Another exciting PHP 8.5 feature: Closures can now be used as constant expressions, allowing them to appear as default parameters or attribute values.

One of the most exciting additions in PHP 8.5 is the pipe operator. It enables more readable and expressive code when working with nested function calls.

Use PHP’s FFI to supercharge your application by offloading compute-heavy work to Go!

A small but meaningful update in PHP 8.5 introduces asymmetric visibility for static properties.

PHP 8.5 adds support for final properties using constructor promotion. In this (very short) article, I’ll show you everything you need to know about this new addition.

PHP 8.5 adds a new function for calculating the Levenshtein distance between strings — now with proper UTF-8 support.

PHP 8.5 introduces support for attributes on non-class constants. This article walks you through everything you need to know about this new feature!

Today, we'll explore one of the exciting features coming with PHP 8.5—the new #[NoDiscard] attribute to indicate important return values.

If you’ve ever worked with both PHPStan and the official AWS SDK for PHP, you know they don’t get along particularly well. In this article, I’ll show you a package I created that addresses this exact issue.