Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<Password Hashing Functionspassword_get_info>
^Password Hashing FunctionsLast updated: Mon, 26 Oct 2026

password_algos

(PHP 7 >= 7.4.0, PHP 8)

password_algos — Get available password hashing algorithm IDs

Description

function password_algos(): array

Returns a complete list of all registered password hashing algorithm IDs as an array of strings.

Parameters

This function has no parameters.

Return Values

Returns the available password hashing algorithm IDs.

Examples

Example #1 Basic password_algos() usage

<?php
print_r(password_algos());
?>

The above example will output something similar to:

Array
(
    [0] => 2y
    [1] => argon2i
    [2] => argon2id
)

<Password Hashing Functionspassword_get_info>
^Password Hashing FunctionsLast updated: Mon, 26 Oct 2026