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);

dump($str$hash$isValid);
Result
^ "Budgie"

^ "$2y$10$g5mBLPXW3xVKt1brIbhxzuc95lazZnHxMIaUFEX.UtRMaLMZ4S9sS"

^ true
Used Versions
PHP 8.0, Laminas MVC 3.2, Symfony 5.2, Laravel 8.28, PHPUnit 9.5, Doctrine ORM 2.8