Bcrypt in ZF2

Code
<?php

use Zend\Crypt\Password\Bcrypt;
use 
Zend\Math\Rand;

$crypt = new Bcrypt([
    
// "salt" and "setSalt" support is deprecated for PHP 7
    
'cost' => 10,
]);
$str 'Budgies';
// salt will be generated internally
$hash $crypt->create($str);
$isValid $crypt->verify($str$hash);

var_dump($hash$isValid);
Result
string(60) "$2y$10$ne3GvgtzlA40fdUl0JJmO.LeB.QRWl0fVMv6Vqxl72R5p.dGcUqTW"
bool(true)
Used Versions
PHP 7.2, Zend 3.0, Symfony 4.0, Laravel 5.6, PHPUnit 6.5, Doctrine 2.8