PHP Performances
De Cock Xavier
Who am I?
PECL Developer BBCode extension
Various in house extensions
Swiftmailer contributorStarted to work on swiftmailer for performance issues.
What is PHP ?
Scripting langage
Scripting engineZend Engine
Extensions providing functionalities
Zend Engine
Memory representation of datas
Source code compilation to Opcode
Opcode Handling
Memory management
Meet The Zval
Zval is the way ZE Stores values
Benefits
The Zval useCopy on write
Automatic type conversion
Automatic garbage collection when ref_count is 0
As of PHP 5.3 Cyclic garbage collector
Zval Examples