On Mon, 3 Nov 2025 at 22:46, Seifeddine Gmati <[email protected]> wrote: > > Hello internals, > > Tim and I would like to open the discussion on our new RFC that we've been > working on: "use construct (Block Scoping)". > > We wanted to raise a few initial points: > > The RFC proposes the `use` keyword. What are your thoughts on a new `using` > keyword instead, similar to C# or Hack? > > How do you feel about the questions raised in the "Open Issues" section? > > What are your general thoughts on the RFC? > > 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 > > Thanks, > > Seifeddine Gmati. > >
Hello internals, Following up on the keyword discussion: I ran an analysis tool across 507,529 PHP files from the top +14,000 Composer packages. Results: https://github.com/azjezz/php-syntax-analyzer#results Summary: `let`, `using`, `scope`, and `block` have zero or minimal conflicts (0-1 occurrences). `with` has 111 conflicts across multiple packages and should be avoided if we decide to use a new keyword. Thanks, Seifeddine Gmati.
