Should be changed to `$salt = '$2a$' . sprintf('%02d', $cost) . '$';` as it was changed in the wiki.