3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php print_r(password_needs_rehash(null, PASSWORD_BCRYPT)); echo "\n"; print_r(password_needs_rehash("$2y$10$S2j/mLdZIAK/MONvQU57zemRuFR53qW91EBX03nCfNcndAdfOfSnS", PASSWORD_BCRYPT)); echo "\n"; print_r(password_needs_rehash("holladrio", PASSWORD_BCRYPT));
based on DBU2e
Output for 5.5.24 - 7.2.0
1 Notice: Undefined variable: S2j in /in/tdbBt on line 5 1 1
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_needs_rehash() in /in/tdbBt on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: password_needs_rehash() in /in/tdbBt on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: password_needs_rehash() in /in/tdbBt on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: password_needs_rehash() in /in/tdbBt on line 3