Changes you would love to see in PHP?

To lighten up some discussion here, I would like to ask what features or changes you would love to see in future PHP versions? We know that in recent versions a lot of nice adjustments were added, but I bet most of us dreams for more.

I personally would love to see types on inline variables, at first even not strict. However, I don’t know if it’s remotely possible with how currently the language is implemented.

spartanatreyu,
@spartanatreyu@programming.dev avatar

This one right here: wiki.php.net/rfc/consistent_function_names

Right now the only reason I ever use php is because I have to.

This one simple change would bring me half way to wanting to use php for fun (the other half would be making debugging easier).

prwnr,

Could you wrote more about that debugging? I’m curious what you find not easy.

spartanatreyu,
@spartanatreyu@programming.dev avatar

Mainly because you’ve got to setup PHP to be debuggable in the first place.

And setting up PHP is already a hassle. When a dev has to set up php in about 5 separate ways just to figure out which one is actually debuggable, then PHP has a problem.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • php@programming.dev
  • random
  • meta
  • Macbeth
  • All magazines