Ah, sorry, I totally should have mentioned that there is a library you can use for versions of PHP >=5.3.9 but still < 5.5. You can find that here and just include it in your projects https://github.com/ircmaxell/password_compat