Doesn't PHP automatically detect the hash algorithm used when performing a check ? If password_verify is used behind the scenes as I assume, old hashes should still check with the old algorithm.
I also assumed that if you changed the hash algorithm in PHP configuration, Flarum would use the system default. But I have never tested this theory.