PHP 7.0.6 Released

Version constants

OPENSSL_VERSION_TEXT (string)
OPENSSL_VERSION_NUMBER (integer)

Note:

These constants were added in 5.2.0.

User Contributed Notes

sebastian.goendoer
8 months ago
<?php
echo "openssl version text: " . OPENSSL_VERSION_TEXT . "\n";
echo
"openssl version number:  " . OPENSSL_VERSION_NUMBER . "\n";
?>

will output something like:

    openssl version text: OpenSSL 1.0.2d 9 Jul 2015
    openssl version number:  268443727

see also: https://wiki.openssl.org/index.php/Manual:OPENSSL_VERSION_NUMBER(3)
To Top