Best of stitcher.io2022

  1. 1
    Article
    Avatar of stitcherstitcher.io·4y

    PHP performance across versions

    I did some casual benchmarks on a WordPress installation from PHP 5.6 tot PHP 8.1, here are the results. Noticed a tpyo? You can submit a PR to fix it. If you want to stay up to date about what's happening on this blog, follow me on Twitter or subscribe to my newsletter.

  2. 2
    Article
    Avatar of stitcherstitcher.io·4y

    Readonly classes in PHP 8.2

    PHP 8.2 adds a new way of declaring classes: you can make them readonly. In practice, it means that all properties of that class will be readonly. This is especially useful when you're using data transfer objects or value objects, where a class only has public readonly properties.