1--TEST-- 2Test normal operation of password_get_info() with Argon2 3--SKIPIF-- 4<?php 5if (!defined('PASSWORD_ARGON2I')) die('skip password_get_info not built with Argon2'); 6?> 7--FILE-- 8<?php 9 10var_dump(password_get_info('$argon2i$v=19$m=65536,t=3,p=1$SWhIcG5MT21Pc01PbWdVZw$WagZELICsz7jlqOR2YzoEVTWb2oOX1tYdnhZYXxptbU')); 11echo "OK!"; 12?> 13--EXPECT-- 14array(3) { 15 ["algo"]=> 16 int(2) 17 ["algoName"]=> 18 string(7) "argon2i" 19 ["options"]=> 20 array(3) { 21 ["memory_cost"]=> 22 int(65536) 23 ["time_cost"]=> 24 int(3) 25 ["threads"]=> 26 int(1) 27 } 28} 29OK! 30