Just-In-Time (JIT) Compilation in PHP 8.0

Just-In-Time (JIT) Compilation in PHP 8.0

Just-in-time (JIT) compilation is a process that takes compilation of the code at run time. JIT compilation allows improving performance of interpreted programming languages. Since PHP 8.0, we can use...
Using Attributes in PHP 8.0

Using Attributes in PHP 8.0

PHP allows specifying doc comments on declarations in code, which can be retrieved using the Reflection API. However, doc comments are just strings that provide unstructured metadata information. There are...
Constructor Property Promotion in PHP 8.0

Constructor Property Promotion in PHP 8.0

Properties are class member variables that store values like strings, integers, boolean, etc. We can set properties via class constructor, setter method or directly if property is public. When we...
Using WeakMap in PHP 8.0

Using WeakMap in PHP 8.0

The SplObjectStorage class allows storing additional data about objects. Objects are stored as keys and associated data as values. In other words, this class allows creating a map from objects...
Function __autoload Has Been Removed in PHP 8.0

Function __autoload Has Been Removed in PHP 8.0

Autoloading is a process to automatically load classes and interfaces without using include, include_once, require, or require_once statements at the beginning of each PHP file. The __autoload is a function...
Using Nullsafe Operator in PHP 8.0

Using Nullsafe Operator in PHP 8.0

Null is a type that has only one possible value null. The null value indicates that the variable doesn't have a value. However, due to null value, we might need...