I am using XAMPPS to run PHP files but when i run the file in localhost/ it asks to update to PHP 7.4, and this is where the problem occurs apache can't run.
I tried change the port (such as port 8080, 8081 etc change in httpd.conf) will get to a workaround for this issue. I have also downloaded the latest version of Microsoft Visual C++ at https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads but the problem still doesn't solve.
This is the error while starting Apache :

Logs from apache error log file:

This is the result when I ran the commands httpd.exe -v and php.exe -v: `c:\xampp\mysql\bin>httpd.exe -v 'httpd.exe' is not recognized as an internal or external command, operable program or batch file.
c:\xampp\mysql\bin>php.exe -v
PHP 7.4.33 (cli) (built: Nov 2 2022 17:33:44) ( ZTS Visual C++ 2017 x86 )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
I don't think I have any problem with IIS, WEB CLIENT, WORLD WIDE WEB SERVICE. Please help me fix it, thanks.