The PHP team announced the official release of PHP 8 on November 26, 2020!
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:
《The new features of PHP 8: The impact of JIT on PHP application performance》
《The constructor attribute of the new feature of PHP 8 has been greatly enhanced! 》
JIT’s contribution to PHP 8 performance:
For more PHP8 related features and technical articles, please visit the PHP8 special column!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

ZendStudio 13.5.1 Mac
Powerful PHP integrated development environment

MantisBT
Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

SecLists
SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

Notepad++7.3.1
Easy-to-use and free code editor

DVWA
Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software
