3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $bcrypt = '$2a$12$9SIfjYSVOTw8xFn98DadmOYKMSyReSktMvm/tfiLFDYb.oGvO8LEC'; $bcryptNeedsRehash = preg_replace('/\$\d{2}\$/', '$' . 12 . '$', $bcrypt); var_dump($bcrypt, $bcryptNeedsRehash);
Output for 4.3.0 - 7.2.0
string(60) "$2a$12$9SIfjYSVOTw8xFn98DadmOYKMSyReSktMvm/tfiLFDYb.oGvO8LEC" string(57) "$2a$9SIfjYSVOTw8xFn98DadmOYKMSyReSktMvm/tfiLFDYb.oGvO8LEC"