PHP7

20
PHP 7 Alex Ception

Transcript of PHP7

Page 1: PHP7

PHP 7

Alex Ception

Page 2: PHP7

• 2005

• Unicode

• 64bit

• Annotations

• 2014

PHP 6 ?

Page 3: PHP7

TL;DR

R.I.P

Page 4: PHP7

• HHVM

• 2012

• ~2x faster

• PHP

• ZendEngine 2

• PHPNG

PHP 7 - Why ?

Page 5: PHP7

Spaceship Op

Page 6: PHP7

Null Coalesce Op ??

Page 7: PHP7

Switch

Page 8: PHP7

• Hexa

• Unicode

• tags ASP

• etc.

Minors

Page 9: PHP7

Hmm...okay...

Page 10: PHP7

• Java

• Interface, Trait, inheritance

• PSR

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

• Specific

Anonymous classes

Page 11: PHP7

• Multiple RFC

• War

• declare(s_t=1|0)

Scalar Type Hinting

Page 12: PHP7

• Scalars, objects

• 3 or 4 values booleans

• Autoboxing

• Cast :(

Scalar Type Hinting

Page 13: PHP7

• MAIS !

Scalar Type Hinting

Page 14: PHP7

• Scalar, Objects

• null

• declare(s_t=1|0)

• void

• parent/self

Return Type

Page 15: PHP7

• RFC

• Interface

• Error

• Exception

• Flexibility

Throwable

Page 16: PHP7

Bench - Bubble

Page 17: PHP7

Bench - CLI sf 2.7

Page 18: PHP7

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

Page 19: PHP7

Release date ?

next week03/12/2015

Page 20: PHP7

Questions ?