- var_dump: documentation ( source)
- password_hash: documentation ( source)
- password_get_info: documentation ( source)
<?php
$options = [
"cost" => 4,
"salt" => "thisisalongsaltforhash"
];
$hash = password_hash("password", PASSWORD_BCRYPT, $options);
var_dump(password_get_info($hash));