3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(password_needs_rehash(null, PASSWORD_BCRYPT)); echo "\n"; var_dump(password_needs_rehash('$2y$10$S2j/mLdZIAK/MONvQU57zemRuFR53qW91EBX03nCfNcndAdfOfSnS', PASSWORD_BCRYPT)); echo "\n"; var_dump(password_needs_rehash("holladrio", PASSWORD_BCRYPT));
based on hkfoY
Output for 5.5.0 - 5.6.30, 7.0.0 - 7.2.0
bool(true) bool(false) bool(true)
Output for hhvm-3.11.1 - 3.17.3
Fatal error: Uncaught TypeError: Argument 1 passed to password_needs_rehash() must be an instance of string, null given in /in/XAdXt:3 Stack trace: #0 /in/XAdXt(3): password_needs_rehash() #1 {main}
Process exited with code 255.
Output for hhvm-3.10.1
Catchable fatal error: Argument 1 passed to password_needs_rehash() must be an instance of string, null given in /in/XAdXt on line 3
Process exited with code 255.
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_needs_rehash() in /in/XAdXt 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/XAdXt 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/XAdXt 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/XAdXt on line 3