PHP 8.0.0

The PHP development team has announced the release of a new version of the language — PHP 8.0.0.

Improvements and new features:

  • Union Types. Instead of PHPDoc annotations for combining types, you can now use native union type declarations that are checked at runtime.

  • Named arguments. Structured metadata with native PHP syntax can now replace PHPDoc annotations.

  • Nullsafe operator. Instead of checking for null, you can now use a call chain with the new nullsafe operator. When a check on one element in the chain fails, the execution of the entire chain is interrupted, and it resolves to null.

  • Just-in-time compilation. PHP 8 introduces two JIT engines. The more promising one, Tracing JIT, shows improved performance: three times on synthetic tests and 1.5 to 2 times on certain specific applications. Typical application performance is on par with PHP 7.4.

Source: linux.org.ru

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster