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$wlxM8vtSKo.d9uToV4AgI.9ZyOvocid1X32RkVjFguteQ0kZ.PvqS"
bool(true)
Used Versions
PHP 7.3, Zend 3.0, Symfony 4.3, Laravel 5.8, PHPUnit 8.0, Doctrine 2.10