PHP7

Post on 15-Apr-2017

944 views 2 download

Transcript of PHP7

PHP 7

Alex Ception

• 2005

• Unicode

• 64bit

• Annotations

• 2014

PHP 6 ?

TL;DR

R.I.P

• HHVM

• 2012

• ~2x faster

• PHP

• ZendEngine 2

• PHPNG

PHP 7 - Why ?

Spaceship Op

Null Coalesce Op ??

Switch

• Hexa

• Unicode

• tags ASP

• etc.

Minors

Hmm...okay...

• Java

• Interface, Trait, inheritance

• PSR

• Mock $a->setLogger(new class { … });

• Specific

Anonymous classes

• Multiple RFC

• War

• declare(s_t=1|0)

Scalar Type Hinting

• Scalars, objects

• 3 or 4 values booleans

• Autoboxing

• Cast :(

Scalar Type Hinting

• MAIS !

Scalar Type Hinting

• Scalar, Objects

• null

• declare(s_t=1|0)

• void

• parent/self

Return Type

• RFC

• Interface

• Error

• Exception

• Flexibility

Throwable

Bench - Bubble

Bench - CLI sf 2.7

PHPNG – SF 2.7.4

�PHP 5.6.12�No cache

�Cached

�PHP 7.0.0�No cache

���Cached

- ~50%- ~50%

- ~70%- ~90%Conf PHP

Release date ?

next week03/12/2015

Questions ?