3v4l.org

run code in 300+ PHP versions simultaneously
<?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.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.32, 7.2.0 - 7.2.22, 7.3.0 - 7.3.9
Warning: password_hash(): Unknown password hashing algorithm: 12345678 in /in/Tee7V on line 9
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/Tee7V on line 9
Process exited with code 255.

preferences:
174.57 ms | 402 KiB | 261 Q