PHP 8.5's #[NoDiscard] attribute warns you when critical return values are silently discarded. Here's how to use it to write safer, self-documenting APIs.
PHP 8.6 lands two closure optimizations — static inference and stateless caching — delivering real memory and speed gains with zero code changes required.
The PHP Foundation funds core PHP development and drives the language forward. Here's what it does, why it matters, and how PHP developers can support it.