PHP Dev
damienseguy's profile
Damien seguy@damienseguy•Dec 06, 2025
21.8K
Exakat's profile
Post cover image

PHP 8.5 Garbage Collection Improvements

From tideways.com•Dec 06, 2025•4m read time

PHP 8.5 introduces garbage collection optimizations that exclude enums and static fake closures (first-class callables) from cycle collection checks. These types cannot have cyclic references, so marking them as non-collectable prevents unnecessary GC runs. The improvement is particularly impactful when dealing with large numbers of first-class callables, reducing GC overhead from 44 runs to zero in benchmark tests with 10 million instances. The change demonstrates continued refinement of PHP's memory management system.

Sort:

damienseguy's user avatar
Damien seguy
@damienseguy
Joined Oct 25. 2023
21.8K
Exakat's profile

Exakat

Verified

PHP developer passionate about deep language knowledge, testing, static analysis, and sustainable it

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard