Is your code ready for PHP 7 ?

Embed Size (px)

Citation preview

Is my code ready for PHP 7 ?

I told engineeringto upgrade all serversto PHP 7. That's OK,right ?

I uh...I guess...

Before we begin

Send a text to +32460200098

Powered by PHP 7

Copyright Michelangelo ;-)

Who am I ?

Wim Godden (@wimgtr)

Founder of Cu.be Solutions (http://cu.be)

Open Source developer since 1997

Developer of PHPCompatibility, OpenX, PHPConsistent, ...

Speaker at Open Source conferences

Why vs How

Why upgrade ?Bad reasons :It's cool to have the latest version

Annoy sysadmins

Oh cool, a new toy !

How to upgrade ?The nightmare of compatibilityThe joy of automationNo miracles here !

part 2look at difficulties you might encounter in upgrading.

I'll provide solutions not a magician

can't solve everything ;-)

Show of hands

3 / 4

5.0

5.1

5.2

5.3

5.4

5.5

5.6

6.0

7.0

The numbers

W3Techs (http://w3techs.com/technologies/details/pl-php/all/all) Dec 2015 Jan 2015 Nov 2013PHP 4 : 1.3%1.8% 2.7%

PHP 5 : 98.7%98.2% 97.3%

5.0 :