3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $time_start = microtime(true); echo password_hash('password', PASSWORD_ARGON2I, ['memory_cost' => 1<<14, 'time_cost' => 20, 'threads' => 5]).PHP_EOL; $time_end = microtime(true); //dividing with 60 will give the execution time in minutes other wise seconds $execution_time = ($time_end - $time_start); //execution time of the script echo 'Total Execution Time: '.$execution_time.' Secs'.PHP_EOL;
Output for 7.2.6

Process exited with code 139.
Output for 7.2.0
$argon2i$v=19$m=16384,t=20,p=5$bTY1aGlhNmlYUVR4TDFLVA$1V7bGs0WeWH4y4CET8elDdjvtXGTg7kMplAsj6rndc8 Total Execution Time: 0.15405106544495 Secs
Output for 7.1.10
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 2.7894973754883E-5 Secs
Output for 7.1.7
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 2.0980834960938E-5 Secs
Output for 7.1.6
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 0.00015497207641602 Secs
Output for 7.1.5
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 4.1961669921875E-5 Secs
Output for 7.1.4
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 9.7990036010742E-5 Secs
Output for 7.1.3
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 4.0054321289062E-5 Secs
Output for 7.1.2
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 9.5844268798828E-5 Secs
Output for 7.1.1
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 3.6001205444336E-5 Secs
Output for 7.1.0
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 4.1007995605469E-5 Secs
Output for 7.0.20
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 6.1988830566406E-5 Secs
Output for 7.0.19
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 0.0067811012268066 Secs
Output for 7.0.18
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 0.00017499923706055 Secs
Output for 7.0.17
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 5.0067901611328E-5 Secs
Output for 7.0.16
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 3.9100646972656E-5 Secs
Output for 7.0.15
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 0.00010299682617188 Secs
Output for 7.0.14
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 0.00013518333435059 Secs
Output for 7.0.11, 7.0.13
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 0.00012612342834473 Secs
Output for 7.0.12
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 9.8943710327148E-5 Secs
Output for 7.0.10
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 6.103515625E-5 Secs
Output for 7.0.9
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 4.6968460083008E-5 Secs
Output for 7.0.8
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 5.0783157348633E-5 Secs
Output for 7.0.7
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 0.00010490417480469 Secs
Output for 7.0.6
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 0.00013399124145508 Secs
Output for 7.0.5
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 0.00010108947753906 Secs
Output for 7.0.4
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 6.8902969360352E-5 Secs
Output for 7.0.3
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 5.3882598876953E-5 Secs
Output for 7.0.2
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 5.9127807617188E-5 Secs
Output for 7.0.1
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 0.00012016296386719 Secs
Output for 7.0.0
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be integer, string given in /in/GfO5M on line 4 Total Execution Time: 6.2942504882812E-5 Secs
Output for hhvm-3.15.4
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Fatal error: Uncaught TypeError: Argument 2 passed to password_hash() must be an instance of int, string given in /in/GfO5M:4 Stack trace: #0 /in/GfO5M(4): password_hash() #1 {main}
Process exited with code 255.
Output for 5.6.30
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 3.6001205444336E-5 Secs
Output for 5.6.27, 5.6.29
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 4.887580871582E-5 Secs
Output for 5.6.21, 5.6.28
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 4.0054321289062E-5 Secs
Output for 5.6.26
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 0.00012397766113281 Secs
Output for 5.6.25
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 5.1975250244141E-5 Secs
Output for 5.6.22, 5.6.24
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 0.00012087821960449 Secs
Output for 5.6.23
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 0.00012588500976562 Secs
Output for 5.6.20
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 0.00023198127746582 Secs
Output for 5.6.19
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 4.4822692871094E-5 Secs
Output for 5.6.18
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 0.0001380443572998 Secs
Output for 5.6.17
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 0.00011301040649414 Secs
Output for 5.6.16
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 0.00012111663818359 Secs
Output for 5.6.15
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 5.1021575927734E-5 Secs
Output for 5.6.14
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 3.9815902709961E-5 Secs
Output for 5.6.13
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 4.5061111450195E-5 Secs
Output for 5.6.10, 5.6.12
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 5.6982040405273E-5 Secs
Output for 5.6.11
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 0.0001220703125 Secs
Output for 5.6.9
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 9.9897384643555E-5 Secs
Output for 5.6.8
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 0.00010108947753906 Secs
Output for 5.6.7
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 5.2928924560547E-5 Secs
Output for 5.6.6
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 0.00011014938354492 Secs
Output for 5.6.3, 5.6.5
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 4.1007995605469E-5 Secs
Output for 5.6.4
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 4.1961669921875E-5 Secs
Output for 5.6.2
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 9.7990036010742E-5 Secs
Output for 5.6.1
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 0.00012302398681641 Secs
Output for 5.6.0
Notice: Use of undefined constant PASSWORD_ARGON2I - assumed 'PASSWORD_ARGON2I' in /in/GfO5M on line 4 Warning: password_hash() expects parameter 2 to be long, string given in /in/GfO5M on line 4 Total Execution Time: 4.9114227294922E-5 Secs