3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo 'Argon2id hash: ' . password_hash('rasmuslerdorf', PASSWORD_ARGON2ID);
Output for 7.4.0 - 7.4.1
Warning: Use of undefined constant PASSWORD_ARGON2ID - assumed 'PASSWORD_ARGON2ID' (this will throw an Error in a future version of PHP) in /in/ZKChh on line 3 Warning: password_hash(): Unknown password hashing algorithm: PASSWORD_ARGON2ID in /in/ZKChh on line 3 Argon2id hash:
Output for 7.3.0 - 7.3.13
Warning: Use of undefined constant PASSWORD_ARGON2ID - assumed 'PASSWORD_ARGON2ID' (this will throw an Error in a future version of PHP) in /in/ZKChh on line 3 Warning: password_hash() expects parameter 2 to be int, string given in /in/ZKChh on line 3 Argon2id hash:
Output for 7.2.0 - 7.2.26
Warning: Use of undefined constant PASSWORD_ARGON2ID - assumed 'PASSWORD_ARGON2ID' (this will throw an Error in a future version of PHP) in /in/ZKChh on line 3 Warning: password_hash() expects parameter 2 to be integer, string given in /in/ZKChh on line 3 Argon2id hash:
Output for 7.1.0 - 7.1.33
Notice: Use of undefined constant PASSWORD_ARGON2ID - assumed 'PASSWORD_ARGON2ID' in /in/ZKChh on line 3 Warning: password_hash() expects parameter 2 to be integer, string given in /in/ZKChh on line 3 Argon2id hash:

preferences:
45.69 ms | 812 KiB | 4 Q