Using Bcrypt in Laravel

Code
<?php

use Illuminate\Hashing\BcryptHasher;

$hasher = new BcryptHasher();

$str 'Budgie';
// uses php 5.5 password_hash()
$hash $hasher->make($str);
// uses php 5.5 password_verify()
$isValid $hasher->check($str$hash);

var_dump($str$hash$isValid);
Result
string(6) "Budgie"
string(60) "$2y$10$xIk0lW01iNiX.SsXN.tNHe5IEu1aeKgZn7j1CEsqe/f5j0aN6nqtK"
bool(true)
Used Versions
PHP 7.3, Zend 3.0, Symfony 4.3, Laravel 5.8, PHPUnit 8.0, Doctrine 2.10