
PHP Performance with Marco Pivetta (ocramius)
11/12/19 • 29 min
In this episode, Benjamin and Matthew, talk with Marco Pivetta (ocramius) about:
- PHP 7.4's new preloading feature: what it is, how it works, the benefits and drawbacks of using it
- The speed differences between different versions of PHP (especially in 7.x)
- The difference between OPcache and Preloading
- How Composer's autoloader may soon be a thing of the past
Notable Quotes
Composer is the mother of all frameworks.The (Composer) autoloader will gradually disappear.You wouldn't build a house and not check it for 10 years. It should be the same for software projects.Everything (in software development) is a trade-off.Links
- https://tideways.com/profiler/blog/5-ways-to-increase-php-performance
- https://wiki.php.net/rfc/preload
- Roave/you-are-using-it-wrong
- Roave/BackwardCompatibilityCheck
Guests: Marco Pivetta.
Hosted By: Benjamin Eberlei, and Matthew Setter.
Thanks for tuning in to the Undercover ElePHPant. If you’d like to be a guest on the podcast or know someone very knowledgeable in writing highly performant and scalable PHP applications, email [email protected].
This podcast is produced by Tideways. Don't look further for an all in one Monitoring, Profiling and Exception Tracking software for PHP applications available on tideways.com. Follow us on Twitter (@tidewaysio). Find out more about us at https://tideways.com.
In this episode, Benjamin and Matthew, talk with Marco Pivetta (ocramius) about:
- PHP 7.4's new preloading feature: what it is, how it works, the benefits and drawbacks of using it
- The speed differences between different versions of PHP (especially in 7.x)
- The difference between OPcache and Preloading
- How Composer's autoloader may soon be a thing of the past
Notable Quotes
Composer is the mother of all frameworks.The (Composer) autoloader will gradually disappear.You wouldn't build a house and not check it for 10 years. It should be the same for software projects.Everything (in software development) is a trade-off.Links
- https://tideways.com/profiler/blog/5-ways-to-increase-php-performance
- https://wiki.php.net/rfc/preload
- Roave/you-are-using-it-wrong
- Roave/BackwardCompatibilityCheck
Guests: Marco Pivetta.
Hosted By: Benjamin Eberlei, and Matthew Setter.
Thanks for tuning in to the Undercover ElePHPant. If you’d like to be a guest on the podcast or know someone very knowledgeable in writing highly performant and scalable PHP applications, email [email protected].
This podcast is produced by Tideways. Don't look further for an all in one Monitoring, Profiling and Exception Tracking software for PHP applications available on tideways.com. Follow us on Twitter (@tidewaysio). Find out more about us at https://tideways.com.
Previous Episode

Talking Garbage Collection with Derick Rethans
Thanks to PHP being an interpreted language and it that it has a garbage collector, PHP developers don't often have to think about memory management. Unlike developers in compiled languages, such as C/C++, we don't have to give that much thought to memory allocation and deallocation.
However, it's helpful to have a broad understanding of how garbage collection works in PHP, along with how you can interact with it so that you can create high performing applications.
In this episode, Benjamin and Matthew, talk with Derick Rethans about:
- The basics of how garbage collection works in PHP
- About how Xdebug and garbage collection in PHP came about
- About some of the functions available for interacting with it
- How to get the most out of garbage collection
Links
- https://tideways.com/profiler/blog/what-is-garbage-collection-in-php-and-how-do-you-make-the-most-of-it
- https://pdfs.semanticscholar.org/0aa0/bbefc44d55a18826a0d82007f4b1f678cb36.pdf
- https://news.ycombinator.com/item?id=14823054
- https://xdebug.org/support
- https://derickrethans.nl/xdebug-update-september-2019.html
Guests: Derick Rethans.
Hosted By: Benjamin Eberlei, and Matthew Setter.
Thanks for tuning in to the Undercover ElePHPant. If you’d like to be a guest on the podcast or know someone very knowledgeable in writing highly performant and scalable PHP applications, email [email protected].
This podcast is produced by Tideways. Don't look further for an all in one Monitoring, Profiling and Exception Tracking software for PHP applications available on tideways.com. Follow us on Twitter (@tidewaysio). Find out more about us at https://tideways.com.
Next Episode

How to Run PHP Applications on Multiple Servers
In this episode, Benjamin and Matthew talk with Robert Douglass and Larry Garfield from Platform.sh about running PHP applications on multiple servers. Robert and Larry share a load of excellent advice, including:
Why you need to use Load Balancers (along with what they are and some of the key options)
How PHP is exceptionally well suited to being deployed across multiple servers out of the box
How you can start deploying your PHP apps on multiple servers today
How to properly share files, data, cache, and sessions
Why sticky sessions are, often, a bad idea
How to handle workers and Cron jobs
Plus loads load more!
Links
Guests: Robert Douglass and Larry Garfield.
Hosted By: Benjamin Eberlei and Matthew Setter.
Thanks for tuning in to the Undercover ElePHPant. If you'd like to be a guest on the podcast or know someone very knowledgeable in writing highly performant and scalable PHP applications, email [email protected].
This podcast is produced by Tideways. Don't look further for an all in one Monitoring, Profiling and Exception Tracking software for PHP applications available on tideways.com. Follow us on Twitter (@tidewaysio). Find out more about us at https://tideways.com.
If you like this episode you’ll love
Episode Comments
Generate a badge
Get a badge for your website that links back to this episode
<a href="https://goodpods.com/podcasts/the-undercover-elephpant-681127/php-performance-with-marco-pivetta-ocramius-89700006"> <img src="https://storage.googleapis.com/goodpods-images-bucket/badges/generic-badge-1.svg" alt="listen to php performance with marco pivetta (ocramius) on goodpods" style="width: 225px" /> </a>
Copy