- password_hash: documentation ( source)
- microtime: documentation ( source)
- password_verify: documentation ( source)
<?php
$startTime = microtime(TRUE);
$password='test';
$cost=13;
$hash=password_hash($password, PASSWORD_DEFAULT, array('cost' => $cost));
password_verify($password,$hash);
$endTime = microtime(TRUE);
$time = $endTime - $startTime;
echo $time;
echo $hash;