Hasty Briefsbeta

PHP 8.5 gets released today, here's what's new

3 days ago
  • #PHP
  • #Web Development
  • #Programming
  • PHP 8.5 introduces the pipe operator for easier function chaining.
  • New 'clone with' feature allows assigning new values to cloned objects.
  • Added #[NoDiscard] attribute to enforce return value usage.
  • Closures can now be used in constant expressions, including attributes.
  • Fatal errors now include backtraces for better debugging.
  • New array_first() and array_last() functions for array manipulation.
  • New URI implementation for easier URI handling.
  • Added #[DelayedTargetValidation] attribute for runtime validation.
  • Smaller changes include asymmetric visibility for static properties and support for attributes on constants.
  • Deprecations include non-standard cast names and backticks as shell_exec() alias.