Use XAMPP's PHP with composer to update Drupal 8
There are multiple ways to update your Drupal 8 installation but I prefer using composer for ease of use. However, if you have multiple PHP installations on your system, composer may use the wrong PHP version. Typically, you would update your Drupal 8 installation like this: