search
HomeheadlinesPHP 8 is officially released!

The PHP team announced the official release of PHP 8 on November 26, 2020!

PHP 8 is officially released!

Download address: https://www.php.net/downloads.php

PHP 8.0.0 Currently the latest major version, it introduces some breaking changes, as well as many new features and performance optimizations:

Notable improvements in PHP 8.0 include

1. PHP 8.0 introduces the highly anticipated Just In Time (JIT) compiler, which can further improve the execution speed of PHP scripts

2. PHP 8.0 incorporates many performance optimizations

3. JSON support is now considered a core part of the language and is always available, rather than as an optional module.

4. Supports named parameters as they enable specifying parameter names. Instead of their exact order

5. Attributes (or also called annotations or modifiers in other languages) that support structured metadata for classes/properties/functions/methods/parameters/constants

6. Supports union types that can indicate multiple different types. These types can be used as parameters or return types of functions.

7. Support static return types.

8. str_contains The () function is a convenient way to check if a string is contained within another string without having to use strpos etc. Similar to this are the new str_starts_with() and str_ends_with() functions

9. The Nullsafe operator is added as a method A quick and easy way to apply empty merge behavior on

10. Compared with the stable version of PHP 7.4, PHP 8.0 has improved performance by about 10%, but at least in some aspects, JIT can provide more performance

New features of PHP8 Related articles:

JIT’s contribution to PHP 8 performance:

PHP 8 is officially released!

For more PHP8 related features and technical articles, please visit the PHP8 special column!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

WebStorm Mac version

WebStorm Mac version

Useful JavaScript development tools

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!