- password_hash: documentation ( source)
- microtime: documentation ( source)
- password_verify: documentation ( source)
<?php
$startTime = microtime(TRUE);
$password='123456';
$cost=13;
$hash=password_hash($password, PASSWORD_DEFAULT, array('cost' => $cost));
password_verify($password,$hash);
$endTime = microtime(TRUE);
$time = $endTime - $startTime;
echo $time;
This script was stopped while abusing our resources