I have a PHP 5.x script which requires OpenSSL 0.9.8k or higher.
In regard to OpenSSL, I found the following two relevant constants:
OPENSSL_VERSION
The source for version 0.9.8k has a constant OPENSSL_VERSION_NUMBER of 0x009080bf
OPENSSL_VERSION_NUMBER
0x009080bf