1--TEST-- 2Test normal operation of password_hash() 3--FILE-- 4<?php 5//-=-=-=- 6 7var_dump(strlen(password_hash("foo", PASSWORD_BCRYPT))); 8 9$algos = [ 10 PASSWORD_BCRYPT, 11 '2y', 12 1, 13]; 14 15foreach ($algos as $algo) { 16 $hash = password_hash("foo", $algo); 17 var_dump($hash === crypt("foo", $hash)); 18} 19 20echo "OK!"; 21?> 22--EXPECT-- 23int(60) 24bool(true) 25bool(true) 26bool(true) 27OK! 28