PHP offers hash_equals() since 5.6 and password_hash()/password_verify() since 5.5 (and === in all versions) -- this is a problem that plagues poorly designed legacy code.
The problem is not PHP, the problem is ignorant developers who do not know [how] to use password_hash() and password_verify().
[Also, "Matasano". I feel like I'm pressing the summonthensa.com button but w/e.]