3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( password_hash('password', 2), password_hash('password', PASSWORD_ARGON2I), password_hash('password', PASSWORD_ARGON2) );
Output for 7.4.0 - 7.4.1
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/6nlom on line 4 Warning: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' (this will throw an Error in a future version of PHP) in /in/6nlom on line 5 Warning: password_hash(): Unknown password hashing algorithm: PASSWORD_ARGON2I in /in/6nlom on line 5 Warning: Use of undefined constant PASSWORD_ARGON2 - assumed 'PASSWORD_ARGON2' (this will throw an Error in a future version of PHP) in /in/6nlom on line 6 Warning: password_hash(): Unknown password hashing algorithm: PASSWORD_ARGON2 in /in/6nlom on line 6 NULL NULL NULL
Output for 7.3.0 - 7.3.13
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/6nlom on line 4 Warning: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' (this will throw an Error in a future version of PHP) in /in/6nlom on line 5 Warning: password_hash() expects parameter 2 to be int, string given in /in/6nlom on line 5 Warning: Use of undefined constant PASSWORD_ARGON2 - assumed 'PASSWORD_ARGON2' (this will throw an Error in a future version of PHP) in /in/6nlom on line 6 Warning: password_hash() expects parameter 2 to be int, string given in /in/6nlom on line 6 NULL NULL NULL
Output for 7.2.10 - 7.2.26
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/6nlom on line 4 Warning: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' (this will throw an Error in a future version of PHP) in /in/6nlom on line 5 Warning: password_hash() expects parameter 2 to be integer, string given in /in/6nlom on line 5 Warning: Use of undefined constant PASSWORD_ARGON2 - assumed 'PASSWORD_ARGON2' (this will throw an Error in a future version of PHP) in /in/6nlom on line 6 Warning: password_hash() expects parameter 2 to be integer, string given in /in/6nlom on line 6 NULL NULL NULL
Output for 7.2.9
Warning: Use of undefined constant PASSWORD_ARGON2 - assumed 'PASSWORD_ARGON2' (this will throw an Error in a future version of PHP) in /in/6nlom on line 6 Warning: password_hash() expects parameter 2 to be integer, string given in /in/6nlom on line 6 string(95) "$argon2i$v=19$m=1024,t=2,p=2$OHRaSE9ucGZIMFZmMi40Tw$ZgZcWLm1K31ZsaG3Ha8OVr3bG7hkneZya1HwKiPiySk" string(95) "$argon2i$v=19$m=1024,t=2,p=2$NWpzL05ybTRQSklJcjN0dg$11XJeNshJp2cIDffHwha57IQfvUdXx4E6iBDlcrcyr8" NULL
Output for 7.2.0 - 7.2.8

Process exited with code 139.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/6nlom on line 4 Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/6nlom on line 5 Warning: password_hash() expects parameter 2 to be integer, string given in /in/6nlom on line 5 Notice: Use of undefined constant PASSWORD_ARGON2 - assumed 'PASSWORD_ARGON2' in /in/6nlom on line 6 Warning: password_hash() expects parameter 2 to be integer, string given in /in/6nlom on line 6 NULL NULL NULL
Output for 5.6.38
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/6nlom on line 4 Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/6nlom on line 5 Warning: password_hash() expects parameter 2 to be long, string given in /in/6nlom on line 5 Notice: Use of undefined constant PASSWORD_ARGON2 - assumed 'PASSWORD_ARGON2' in /in/6nlom on line 6 Warning: password_hash() expects parameter 2 to be long, string given in /in/6nlom on line 6 NULL NULL NULL

preferences:
116.91 ms | 406 KiB | 118 Q