An image containing a block of programming codes, the PHP logo, including the article’s title.
Author’s image

Member-only story

PHP 8.4: Top Features and Improvements

Olushola
Tech Compass
Published in
7 min readJan 2, 2025

PHP 8.4 is finally here, bringing exciting changes that are set to transform the way developers work! With every new version, PHP keeps proving why it’s such an essential tool in today’s web development landscape.

Prerequisites

This article assumes you have basic knowledge of the PHP programming language.

Software I Use for PHP Development

  • Laravel Herd: used to manage my PHP versions and Nginx server.
  • PHPStorm: A great IDE with good IntelliSense and AI copilot.
  • Laragon: An easy-to-use local development environment that supports PHP and other technologies.

Asymmetric Property Visibility (version 2)🔓🔒

In PHP, the visibility of object properties has traditionally been symmetric. This means that the ⁣get and set operations for a property must share the same visibility—public, private, or protected—but cannot differ.

For instance, if a property is public, both reading and writing to it are public, with no way to allow one operation without the other.

In context, when you declare a property of a classpublic, it becomes mutable, allowing it to be read and modified from outside the class.

Create an account to read the full story.

The author made this story available to Medium members only.
If you’re new to Medium, create a new account to read this story on us.

Or, continue in mobile web

Already have an account? Sign in

Tech Compass
Tech Compass

Published in Tech Compass

Techcompass is a publication exploring all aspects of technology, from the latest coding trends and innovative design solutions to new technologies that are changing the world. We feature a diverse range of perspectives from both industry experts and aspiring writers.

Olushola
Olushola

Written by Olushola

Senior Software Engineer • Writer • Technical Content Developer • Mobile Photographer

No responses yet

What are your thoughts?