The function password_verify() in the new PHP password API checks if the password corresponds to the hash. The hash is generated by password_hash(), that by default uses a rando
The string returned by password_hash() contains not only the hash, but also the algorithm, cost and salt.
password_hash()