PHP7 Features
It's scheduled to come out this year!
The PHP 7 Timeline RFC was approved in a near unanimous vote, and aims to release PHP 7 in October 2015. Even if it’s delayed a bit, we’re still likely to see it before the year is out!! The final feature set for PHP 7 is almost completely finalized, and will officially close by the end of March.
It’s going to have Space Ships
PHP 7 will introduce a new operator <=> conveniently similar to a TIE fighter and dubbed the Spaceship Operator. It can be used for combined comparisons – mostly when dealing with sorting.
Return Type Declarations & Scalar Type Hints PHP 7
will allow developers to declare what kind of return type a function is expected to have – similar to argument Type Hints. In addition, argument type hints and the new return-type declarations now support new scalar types, allowing developers to denote that they’re expecting strings, floats, ints or bools to be passed or returned.
It's gonna be fast!It's scheduled to come out this year!
The PHP 7 Timeline RFC was approved in a near unanimous vote, and aims to release PHP 7 in October 2015. Even if it’s delayed a bit, we’re still likely to see it before the year is out!! The final feature set for PHP 7 is almost completely finalized, and will officially close by the end of March.
It’s going to have Space Ships
PHP 7 will introduce a new operator <=> conveniently similar to a TIE fighter and dubbed the Spaceship Operator. It can be used for combined comparisons – mostly when dealing with sorting.
Return Type Declarations & Scalar Type Hints PHP 7
will allow developers to declare what kind of return type a function is expected to have – similar to argument Type Hints. In addition, argument type hints and the new return-type declarations now support new scalar types, allowing developers to denote that they’re expecting strings, floats, ints or bools to be passed or returned.
PHP 7 is based on the PHPNG project (PHP Next-Gen), that was led by Zend to speed up PHP applications. The performance gains realized from PHP 7 are huge! They vary between 25% and 70% on real-world apps, and all of that just from upgrading PHP, without having to change a single line of code!
Since PHPNG was open sourced and later merged into PHP 7, its performance more than doubled in many cases, and we’re continuing to improve it all the time. To put things in perspective – when PHPNG was published, the WordPress homepage required approx. 9.4 billion CPU instructions to execute. As of now – it requires only 2.6 billion – that’s 72% less!
Supported Extentions
-
bcmath
-
bz2
-
calendar
-
com_dotnet
-
ctype
-
curl
-
date
-
dba
-
dom
-
enchant
-
ereg
-
exif
-
fileinfo
-
filter
-
ftp
-
gd
-
gettext
-
gmp
-
hash
-
iconv
-
imap
-
intl
-
json
-
ldap
-
libxml
-
mbstring
-
mcrypt
-
mysql
-
mysqli
-
mysqlnd
-
odbc (tested with unixODBC and MySQL driver)
-
openssl
-
OPcache
-
pcntl
-
pcre
-
PDO
-
pdo_firebird
-
pdo_mysql
-
PDO_ODBC (tested with unixODBC and MySQL driver)
-
pdo_pgsql
-
pdo_sqlite
-
pgsql
-
Phar
-
posix
-
pspell
-
readline
-
recode
-
Reflection
-
session
-
shmop
-
SimpleXML
-
snmp
-
soap
-
sockets
-
SPL
-
sqlite3
-
standard
-
sysvmsg
-
sysvsem
-
sysvshm
-
tidy
-
tokenizer
-
wddx
-
xml
-
xmlreader
-
xmlwriter
-
xsl
-
zip
-
zlib
Not yet supported
-
interbase
-
mssql
-
oci8
-
pdo_dblib
-
pdo_oci
-
sybase_ct
What will be in PHP 7 / PHPNG
- Performance Improvements with the addition of PHPNG engine.
- JIT - Just in Time compiler
- Abstract Syntax Tree for compilation
- Asynchronous refactoring of the I/O layer.
- Multi-threaded build in Web Server
- Expanded use of ->, [], (), {}, and :: operators
- 100% increase in performance
- Cool Name: PHPNG
- Version: 1.0
- Date: 2014-11-21
- Author: Zeev Suraski, zeev@php.net
- Status: Accepted
- First Published at: http://wiki.php.net/rfc/php7timeline
2015 is shaping up to be an amazing year for PHP. You'll not only benefit from a whole slew of new features but also from performance going through the roof!