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'] = 10; 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.0897240639
Output for 7.0.14
<hr>0.0793528557
Output for 7.0.6
<hr>0.075592041
Output for 7.0.5
<hr>0.082449913
Output for 7.0.4
<hr>0.0612089634
Output for 7.0.3
<hr>0.0709958076
Output for 7.0.2
<hr>0.071833849
Output for 7.0.1
<hr>0.0654900074
Output for 7.0.0
<hr>0.0645580292
Output for 5.6.28
<hr>0.0904347897
Output for 5.6.21
<hr>0.0710978508
Output for 5.6.20
<hr>0.0734710693
Output for 5.6.19
<hr>0.0764119625
Output for 5.6.18
<hr>0.0610740185
Output for 5.6.17
<hr>0.0593659878
Output for 5.6.16
<hr>0.0613849163
Output for 5.6.15
<hr>0.0702109337
Output for 5.6.14
<hr>0.0719730854
Output for 5.6.13
<hr>0.0763971806
Output for 5.6.12
<hr>0.077162981
Output for 5.6.11
<hr>0.0797820091
Output for 5.6.10
<hr>0.0676558018
Output for 5.6.9
<hr>0.0593960285
Output for 5.6.8
<hr>0.0788831711
Output for 5.6.7
<hr>0.0713460445
Output for 5.5.35
<hr>0.064002037
Output for 5.5.34
<hr>0.1160359383
Output for 5.5.33
<hr>0.0809371471
Output for 5.5.32
<hr>0.0594649315
Output for 5.5.31
<hr>0.0615720749
Output for 5.5.30
<hr>0.0828659534
Output for 5.5.29
<hr>0.0618040562
Output for 5.5.28
<hr>0.0623688698
Output for 5.5.27
<hr>0.0632359982
Output for 5.5.26
<hr>0.059294939
Output for 5.5.25
<hr>0.0824410915
Output for 5.5.24
<hr>0.0796980858
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/N9T32 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/N9T32 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/N9T32 on line 14
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: password_hash() in /in/N9T32 on line 14