This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Better & faster
Bruno Ricardo Siqueira
2015
ABOUT THE SPEAKER
Bruno Ricardo Siqueira.
Web developer and PHP evangelist in Brazil. Docker enthusiast. Git heavy user.
Working with Web Development for the last 8 years, Bachelor in Information Systems by University of Sao Paulo ICMC - USP, currently working at CI&T as Software Engineer.
AGENDA
● Warming-up
○ Contextualization
○ Deprecations
○ Removals &
inconsistency reduction
● Looking inside
○ Memory
○ Performance
● New features
○ Unicode
○ Exception in the core
○ Anonymous classes
○ Operators
○ Declarations
○ Generators
● Near future & conclusions
● Questions
WARMING-UP
WARMING-UP - CONTEXTUALIZATION
● 2009 - PHP 5.3
○ Namespaces
○ Anonymous functions
● 2009 - PHP-FIG
● 2010 - HipHop for PHP
(HPHPc)
○ PHP -> C++ binary
● 2011 - HipHop Virtual Machine
(HHVM)
○ JIT -> HipHop ByteCode
● 2012 - PHP 5.4
○ Traits
○ Built in Webserver
● 2013 - PHP 5.5
○ Generators
○ OpCache in the core
● 2014 - HACK Language
● 2014 - PHP 5.6
○ Variadic Functions (...)
○ reusable php://input
WARMING-UP - CONTEXTUALIZATION
WARMING-UP - CONTEXTUALIZATION
WARMING-UP - CONTEXTUALIZATION
WARMING-UP - CONTEXTUALIZATION
PHP7 BETA224/07
● PHP 4 constructors
● password_hash() option
WARMING-UP - DEPRECATIONS
WARMING-UP - REMOVALS & INCONSISTENCY REDUCTION
● date.timezone warning:
○ default value
● alternative tags:
○ <% opening tag○ <%= opening tag with echo○ %> closing tag○ (<script\s+language\s*=\s*(php|"php"|'php')\s*>)i