1--TEST-- 2Test normal operation of password_hash() with Argon2i and Argon2id 3--SKIPIF-- 4<?php 5if (!defined('PASSWORD_ARGON2I')) die('skip password_hash not built with Argon2'); 6if (!defined('PASSWORD_ARGON2ID')) die('skip password_hash not built with Argon2'); 7--FILE-- 8<?php 9 10$password = "the password for testing 12345!"; 11 12$hash = password_hash($password, PASSWORD_ARGON2I); 13var_dump(password_verify($password, $hash)); 14 15$hash = password_hash($password, PASSWORD_ARGON2ID); 16var_dump(password_verify($password, $hash)); 17 18echo "OK!"; 19?> 20--EXPECT-- 21bool(true) 22bool(true) 23OK! 24