3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $time_start = microtime(true); echo password_hash('password', 2, ['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;
based on 2emXM
Output for 7.2.6

Process exited with code 139.
Output for 7.2.0
$argon2i$v=19$m=16384,t=20,p=5$L3ZCeVkyYnl6dEFGV0pEQg$eS8/DMz/vReeAI2sSF2MDojusQkUQb9uSKWomj+oS9E Total Execution Time: 0.16272687911987 Secs
Output for 7.1.10
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 2.5033950805664E-5 Secs
Output for 7.1.7
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 1.5974044799805E-5 Secs
Output for 5.6.10, 5.6.16, 7.1.6
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 3.9100646972656E-5 Secs
Output for 7.1.5
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 8.5115432739258E-5 Secs
Output for 7.1.4
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 4.6014785766602E-5 Secs
Output for 7.1.3
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 4.7922134399414E-5 Secs
Output for 7.1.2
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 9.7990036010742E-5 Secs
Output for 7.0.5, 7.1.1
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 8.4877014160156E-5 Secs
Output for 7.1.0
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 8.1062316894531E-5 Secs
Output for 5.6.12, 7.0.20
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 8.6069107055664E-5 Secs
Output for 7.0.19
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 8.7976455688477E-5 Secs
Output for 7.0.18
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 0.00012302398681641 Secs
Output for 7.0.17
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 4.0054321289062E-5 Secs
Output for 7.0.16
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 0.00010991096496582 Secs
Output for 5.6.24, 7.0.15
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 4.6968460083008E-5 Secs
Output for 5.6.8, 7.0.14
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 9.8943710327148E-5 Secs
Output for 5.6.0, 5.6.4, 7.0.3, 7.0.12 - 7.0.13
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 4.1007995605469E-5 Secs
Output for 7.0.11
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 0.00011420249938965 Secs
Output for 5.6.28, 7.0.10
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 0.00012898445129395 Secs
Output for 7.0.6, 7.0.9
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 9.608268737793E-5 Secs
Output for 7.0.8
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 0.00010490417480469 Secs
Output for 7.0.7
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 0.00010895729064941 Secs
Output for 7.0.4
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 4.4107437133789E-5 Secs
Output for 7.0.2
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 4.2915344238281E-5 Secs
Output for 7.0.1
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 8.0108642578125E-5 Secs
Output for 5.6.1, 7.0.0
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 0.00010418891906738 Secs
Output for hhvm-3.15.4
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 0.00025200843811035 Secs
Output for 5.6.30
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 9.4890594482422E-5 Secs
Output for 5.6.29
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 0.00011301040649414 Secs
Output for 5.6.27
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 3.7193298339844E-5 Secs
Output for 5.6.9, 5.6.26
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 3.6001205444336E-5 Secs
Output for 5.6.25
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 0.00010800361633301 Secs
Output for 5.6.23
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 0.00010013580322266 Secs
Output for 5.6.22
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 0.00011897087097168 Secs
Output for 5.6.21
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 9.1075897216797E-5 Secs
Output for 5.6.20
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 5.0067901611328E-5 Secs
Output for 5.6.19
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 0.00010085105895996 Secs
Output for 5.6.18
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 7.7009201049805E-5 Secs
Output for 5.6.17
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 5.1975250244141E-5 Secs
Output for 5.6.15
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 8.392333984375E-5 Secs
Output for 5.6.14
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 0.0001070499420166 Secs
Output for 5.6.13
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 0.00011920928955078 Secs
Output for 5.6.11
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 9.7036361694336E-5 Secs
Output for 5.6.7
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 0.0001227855682373 Secs
Output for 5.6.6
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 3.9815902709961E-5 Secs
Output for 5.6.5
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 9.4175338745117E-5 Secs
Output for 5.6.3
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 9.3936920166016E-5 Secs
Output for 5.6.2
Warning: password_hash(): Unknown password hashing algorithm: 2 in /in/4IBuc on line 4 Total Execution Time: 9.0837478637695E-5 Secs