The password_get_info() function is used to return information related to the specified hash (hash).
PHP version requirements: PHP 5 >= 5.5.0, PHP 7
array password_get_info (string $hash)
Parameter description:
$hash: A hash value created by password_hash().
Returns an associative array of three elements:
algo: Constant for matching cryptographic algorithms.
algoName: Human-readable name of the algorithm.
options: Options provided when calling password_hash().
The output is:
Array( [algo] => 1 [algoName] => bcrypt [options] => Array ( [cost] => 11 ))