Back to Browse

Stop Micro-Optimizing Your PHP Code (Unless You Rely On This)

841 views
Jun 5, 2025
19:38

Subscribe to my newsletter for PHP performance content: https://tideways.com/newsletter?utm_source=yt&utm_campaign=yt-stop-microoptimizing Try our PHP Profiler: https://tideways.com/profiler/features?utm_source=yt&utm_campaign=yt-stop-microoptimizing In this video I talk about micro-optimizing PHP, how they are not worth their time in 95% of all cases, but how there is a next level where they make an impact. Along the way I talk about: - Hyperfine for Benchmarking: https://tideways.com/profiler/blog/how-we-use-hyperfine-to-measure-php-engine-performance?utm_campaign=yt-stop-microoptimizing - Compiler Optimized Functions: https://tideways.com/profiler/blog/compiler-optimized-php-functions?utm_campaign=yt-stop-microoptimizing - sprintf Optimization in PHP 8.4 https://tideways.com/profiler/blog/new-in-php-8-4-engine-optimization-of-sprintf-to-string-interpolation?utm_campaign=yt-stop-microoptimizing - Add OPcode specialization for === [] https://github.com/php/php-src/pull/18571 00:00 Introduction 00:48 micro-benchmark, or not? 02:49 Empty Array Micro Benchmark 07:20 Optimizing in the PHP Engine 15:32 My thoughts

Download

1 formats

Video Formats

360pmp433.8 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Stop Micro-Optimizing Your PHP Code (Unless You Rely On This) | NatokHD