3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php /** * We just want to hash our password using the current DEFAULT algorithm. * This is presently BCRYPT, and will produce a 60 character result. * * Beware that DEFAULT may change over time, so you would want to prepare * By allowing your storage to expand past 60 characters (255 would be good) */ echo password_hash("54af4ba64ec0a86f4f3e1e45159df08902ab8f40", 12345678)."\n"; ?>
Output for 5.5.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
Warning: password_hash(): Unknown password hashing algorithm: 12345678 in /in/Tee7V on line 9
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/Tee7V on line 9
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: password_hash() in /in/Tee7V on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: password_hash() in /in/Tee7V on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: password_hash() in /in/Tee7V on line 9