Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Intro to PHP 7
Search
Nedeljko Damnjanovic
October 22, 2015
Programming
0
110
Intro to PHP 7
Nedeljko Damnjanovic
October 22, 2015
Tweet
Share
More Decks by Nedeljko Damnjanovic
See All by Nedeljko Damnjanovic
Introduction to Agile methodology
ndamnjanovic
0
100
Scrum - product increment
ndamnjanovic
0
63
Agile Practices, Emergency Procedures
ndamnjanovic
0
57
The Geek Gathering Conference - recap
ndamnjanovic
0
25
33rd Degree - recap
ndamnjanovic
0
24
RequireJS - overview
ndamnjanovic
1
38
JS Tools for modern webapp
ndamnjanovic
0
36
Other Decks in Programming
See All in Programming
VS Code をプロダクトにどう取り込むか
onomax
1
470
新宿ダンジョンを可視化してみた
satoshi7190
2
270
OpenAPIを中心に考えるAPI開発入門 / Introduction to API Development with a Focus on OpenAPI
seike460
PRO
2
170
Tailwind CSSを本気でカスタマイズする方法
fsubal
14
5.3k
Milestoner
bkuhlmann
1
410
Goのエラースタックトレースの歴史と今後
sonatard
9
1.6k
Behind VS Code Extensions for JavaScript / TypeScript Linnting and Formatting
unvalley
5
1k
PostmanでAPIの動作確認が楽になった話
h455h1
0
170
Code Reviews
bkuhlmann
4
890
1BRC--Nerd Sniping the Java Community
gunnarmorling
0
340
PHPの次期バージョンはこの時期どうなっているのか - Internalsの開発体制について - PHPカンファレンス小田原
youkidearitai
PRO
1
190
Polars入門
daikikatsuragawa
1
100
Featured
See All Featured
Documentation Writing (for coders)
carmenintech
60
3.9k
Exploring the Power of Turbo Streams & Action Cable | RailsConf2023
kevinliebholz
2
3.4k
"I'm Feeling Lucky" - Building Great Search Experiences for Today's Users (#IAC19)
danielanewman
221
21k
The Power of CSS Pseudo Elements
geoffreycrofte
60
5k
Building an army of robots
kneath
300
41k
実際に使うSQLの書き方 徹底解説 / pgcon21j-tutorial
soudai
121
39k
Into the Great Unknown - MozCon
thekraken
10
1k
Navigating Team Friction
lara
178
13k
XXLCSS - How to scale CSS and keep your sanity
sugarenia
241
1.2M
No one is an island. Learnings from fostering a developers community.
thoeni
16
2.1k
Optimizing for Happiness
mojombo
370
69k
Art, The Web, and Tiny UX
lynnandtonic
289
19k
Transcript
PHP 7
2015. • 2004. PHP 5.0 • PHP 6 • Important
year for the PHP community • End of November
What’s there to know? • Impact on current codebase •
Is it safe to update • What’s really changed
Performance • Reason to upgrade • Two times faster •
Fast as HHVM
None
Backward compatibility • Deprecated methods are removed (ASP tags
(<% %>, <%=), split, mysql extension) • Uniform Variable Syntax force normal expression evaluation order
None
None
Engine exceptions • Facilitate handling errors • Fatal and recoverable
fatal errors -> exceptions • We should catch those exceptions and handle
None
New features • New operators • spaceship • null
coalesce • scalar type hint • return type hint
Spaceship Combined comparision operator <=>
Null coalesce operator • Shortcut for conditional that checks if
variable is set
Scalar type hints • Integers, floats, strings and booleans as
type hints • non restrictive (float to int) • it’s possible to enable strict mode
Return type hints • Non restrictive • available strict mode
Many more • Anonymous classes • Closure call method •
Group ‘use’ declarations
None