I am trying to use the password_hash function, but my server returns a 500 error. I am using the PHP 5.6.8 version, so it should be compatible.
This is my code:
private static $options = array('cost' => 11);
public static function hash($password) {
// i.e. '123'
return password_hash($password, PASSWORD_BCRYPT, $options);
}