Custom PHP settings PHP-FPM best practice [closed]

I am setting up a LEMP server (Ubuntu/Nginx/PHP) with PHP-FPM, and I was wondering what is the best practice for modifying global PHP settings? There seems to be a few options:

  1. Edit /etc/php/8.3/fpm/php.ini directly.
  2. Edit /etc/php/8.3/fpm/php-fpm.conf directly.
  3. Edit /etc/php/8.3/fpm/pool.d/www.conf directly (although this is normally per site files).
  4. Create a file /etc/php/8.3/fpm/conf.d/GLOBAL.ini.

I did some research, but couldn’t find any useful suggestions. I am guessing it’s not that important, but surely there are some strong opinions? I am inclined to use the last option #4, because that seems the most tidy. Thanks for suggestions.