3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function chrono() { $temps = explode(' ', microtime()); return $temps[0]+$temps[1]; } $debut = chrono(); $options['cost'] = 5; for($i=0;$i<1;$i++) { $p = password_hash('toto', PASSWORD_BCRYPT, $options); } echo'<hr>'; echo round(chrono()-$debut,10);
Output for 7.1.0
<hr>0.003483057
Output for 7.0.14
<hr>0.0033860207
Output for 7.0.6
<hr>0.0020198822
Output for 7.0.5
<hr>0.0026638508
Output for 7.0.4
<hr>0.002093792
Output for 7.0.3
<hr>0.0020768642
Output for 7.0.2
<hr>0.0020129681
Output for 7.0.1
<hr>0.0020229816
Output for 7.0.0
<hr>0.0032758713
Output for 5.6.28
<hr>0.0034930706
Output for 5.6.21
<hr>0.003289938
Output for 5.6.20
<hr>0.0022420883
Output for 5.6.19
<hr>0.0031871796
Output for 5.6.18
<hr>0.0030241013
Output for 5.6.17
<hr>0.0031468868
Output for 5.6.16
<hr>0.0020968914
Output for 5.6.15
<hr>0.0030229092
Output for 5.6.14
<hr>0.0021049976
Output for 5.6.13
<hr>0.0030109882
Output for 5.6.12
<hr>0.0024158955
Output for 5.6.11
<hr>0.0025649071
Output for 5.6.10
<hr>0.0033090115
Output for 5.6.9
<hr>0.002063036
Output for 5.6.8
<hr>0.0031929016
Output for 5.6.7
<hr>0.0020990372
Output for 5.5.35
<hr>0.0031449795
Output for 5.5.34
<hr>0.0023047924
Output for 5.5.33
<hr>0.0030372143
Output for 5.5.32
<hr>0.0020298958
Output for 5.5.31
<hr>0.0020980835
Output for 5.5.30
<hr>0.0033321381
Output for 5.5.29
<hr>0.0023851395
Output for 5.5.28
<hr>0.0023880005
Output for 5.5.27
<hr>0.003013134
Output for 5.5.26
<hr>0.0024440289
Output for 5.5.25
<hr>0.0020840168
Output for 5.5.24
<hr>0.0034279823
Output for 5.3.28 - 5.3.29, 5.4.18 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/BtrA7 on line 14
Process exited with code 255.
Output for 5.0.0 - 5.3.27, 5.4.0 - 5.4.17
Fatal error: Call to undefined function password_hash() in /in/GXbuF on line 14
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: password_hash() in /in/GXbuF on line 14
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: password_hash() in /in/GXbuF on line 14
Process exited with code 255.
Output for 4.3.1
Fatal error: Call to undefined function: password_hash() in /in/GXbuF on line 14
Output for 4.3.0
Fatal error: Call to undefined function: password_hash() in /in/BtrA7 on line 14