PHP, the popular scripting language for web development, announced new 8.5 release few days ago. Here’s how to install or upgrade to Php 8.5 in Ubuntu 22.04 or Ubuntu 24.04 to work with Apache2 or Nginx web server.
PHP 8.5 introduced a number of new features such as new “URI” extension, new pipe operator (|>), new #[\NoDiscard] attribute, support for closures, casts, and first class callables in constant expressions, and much more. See the release page for more.