Slide 1

Slide 1 text

Door Thijs Feryn Wat is er nieuw in

Slide 2

Slide 2 text

Hallo, ik ben Thijs

Slide 3

Slide 3 text

Ik ben @ThijsFeryn op Twitter

Slide 4

Slide 4 text

Ik ben een Evangelist Bij

Slide 5

Slide 5 text

Ik ben bij een bestuurslid

Slide 6

Slide 6 text

PHP 5.0: 2004 PHP 5.1: 2005 PHP 5.2: 2006 PHP 5.3: 2009 PHP 5.4: 2012 PHP 5.5: 2013 PHP 5.6: 2014 PHP 7.0: 3 december 2015

Slide 7

Slide 7 text

PHP 6?

Slide 8

Slide 8 text

PHP 7 is snel

Slide 9

Slide 9 text

Loosely typed vs Strict types declare(strict_types=1);

Slide 10

Slide 10 text

Scalar type hints & Return type declarations function add(int $a, int $b): int{ return $a + $b; }

Slide 11

Slide 11 text

Slide 12

Slide 12 text

Slide 13

Slide 13 text

foo());

Slide 14

Slide 14 text

Generators Sinds PHP 5.5 Iterator shorthand Minder overhead

Slide 15

Slide 15 text

Yield

Slide 16

Slide 16 text

Slide 17

Slide 17 text

Slide 18

Slide 18 text

1" => 1 <=> 1, "1 <=> 2" =>1 <=> 2, "2 <=> 1" => 2 <=> 1 ]; var_dump($array); array(3) { '1 <=> 1' => int(0) '1 <=> 2' => int(-1) '2 <=> 1' => int(1) } Output

Slide 19

Slide 19 text

getMessage().PHP_EOL; } //Exception as Throwable try { throw new Exception("Bla"); } catch (Throwable $t) { echo "Throwable: ".$t->getMessage().PHP_EOL; } //Error try { sqdf(); } catch (Error $e) { echo "Error: ".$e->getMessage().PHP_EOL; } catch (Exception $e) { echo "Exception: ".$e->getMessage().PHP_EOL; }

Slide 20

Slide 20 text

getMessage().PHP_EOL; } catch (Exception $e) { echo "Exception: ".$e->getMessage().PHP_EOL; } //Type error try { function add(int $a, int $b):int { return $a + $b; } echo add(array(), array()); } catch (TypeError $t) { echo "Type error: ".$t->getMessage().PHP_EOL; }

Slide 21

Slide 21 text

Uniform variable syntax

Slide 22

Slide 22 text

✓Voorzien op shared hosting ✓Installeerbaar op Cloud ✓Opgelet for BC breaks PHP 7 bij http://php.net/manual/ en/migration70.php

Slide 23

Slide 23 text

No content