What's new

What`s new?!

What's new in PHP 8.2?

Last updated: March 15, 2025 at 12:00 AM

Object Type Hint

Allows specifying "object" as a type hint

function setObject(object $obj) {}

Argon2 Password Hashing

Stronger password hashing algorithm

$password = password_hash('secret', PASSWORD_ARGON2I);

Class Constant Visibility

Allows visibility modifiers for class constants

class MyClass {
    private const SECRET = 'hidden';
}