Hi

On 11/3/25 22:46, Seifeddine Gmati wrote:
Please find the following resources for your reference:

    -

    RFC: https://wiki.php.net/rfc/optin_block_scoping
    -

    POC:
    https://github.com/php/php-src/compare/master...TimWolla:php-src:block-scope

To also pull it into the top-level:

- We adjusted the keyword from `use()` to `let()`. This has a small BC impact that we explained in the corresponding section. - We refined the entire RFC text to better explain the (design) choices, the focus, to add examples and other clarification. - Since the initial version - but previously announced - the construct will now reset variables to their original value. - And with the latest implementation, there are two new OPcodes that simplify the implementation greatly, but that extensions working with OPcodes need to learn about.

The implementation should be up to date with the latest changes.

Best regards
Tim Düsterhus

Reply via email to