composer and php poblem when I try to run

Good day! I needed to run a system locally in my laptop. I’m using XAMPP, MYSQL Workbench. Microsoft Visual Studio Code and Composer software. Upon typing “php artisan serve;” in the VS Code, I encountered an error saying

PS C:xampphtdocsdoclinkplus_v2> php artisan serve;
PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 8.2.0”. You are running 8.0.30. in C:xampphtdocsdoclinkplus_v2vendorcomposerplatform_check.php on line 24

Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version “>= 8.2.0”. You are running 8.0.30. in C:xampphtdocsdoclinkplus_v2vendorcomposerplatform_check.php on line 24
PS C:xampphtdocsdoclinkplus_v2>

Should I download a different php version? Please help me solve this.

I tried editing the line of code that was mentioned in the error message but it still not working.