This has been tested with XAMPP (PHP 8.2) on Windows 11.
Open php.ini by clicking Config button on the Xampp control panel
In this ini file semi colon (;) is used to comment a line. We want to use openssl library, so we have to make sure the line for openssl is not commented.
Remove semi colon (;) in front of this line, if there is any: