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'] = 14; for($i=0;$i<1;$i++) { $p = password_hash('tototititata', PASSWORD_BCRYPT, $options); } echo'<hr>'; echo round(chrono()-$debut,10);
Output for 7.1.0
<hr>0.8490002155
Output for 7.0.14
<hr>-0.1556200981
Output for 7.0.8
<hr>0.7943599224
Output for 7.0.7
<hr>0.8820719719
Output for 7.0.6
<hr>0.9409601688
Output for 7.0.5
<hr>0.9857227802
Output for 7.0.4
<hr>0.9268889427
Output for 7.0.3
<hr>1.0065670013
Output for 7.0.2
<hr>1.0468659401
Output for 7.0.1
<hr>0.9654150009
Output for 7.0.0
<hr>0.9671928883
Output for hhvm-3.12.0
<hr>0.9336981773
Output for hhvm-3.10.0
<hr>0.9472270012
Output for 5.6.28
<hr>0.213092804
Output for 5.6.23
<hr>0.7934839725
Output for 5.6.22
<hr>0.8647811413
Output for 5.6.21
<hr>1.0054039955
Output for 5.6.20
<hr>0.9429090023
Output for 5.6.19
<hr>0.8134241104
Output for 5.6.18
<hr>0.8121681213
Output for 5.6.17
<hr>0.8177819252
Output for 5.6.16
<hr>0.91370821
Output for 5.6.15
<hr>1.0040049553
Output for 5.6.14
<hr>0.9785509109
Output for 5.6.13
<hr>0.9383280277
Output for 5.6.12
<hr>0.9470119476
Output for 5.6.11
<hr>0.8056840897
Output for 5.6.10
<hr>0.9946420193
Output for 5.6.9
<hr>0.9622268677
Output for 5.6.8
<hr>0.829447031
Output for 5.6.7
<hr>0.9315078259
Output for 5.6.6
<hr>0.8390078545
Output for 5.6.5
<hr>0.865101099
Output for 5.6.4
<hr>0.8054897785
Output for 5.6.3
<hr>0.8534591198
Output for 5.6.2
<hr>0.8983969688
Output for 5.6.1
<hr>0.8368959427
Output for 5.6.0
<hr>0.8734519482
Output for 5.5.37
<hr>0.9017760754
Output for 5.5.36
<hr>0.9854311943
Output for 5.5.35
<hr>0.8257219791
Output for 5.5.34
<hr>0.9847199917
Output for 5.5.33
<hr>0.9613819122
Output for 5.5.32
<hr>0.9522731304
Output for 5.5.31
<hr>1.0090169907
Output for 5.5.30
<hr>0.8343679905
Output for 5.5.29
<hr>0.9400188923
Output for 5.5.28
<hr>0.9847359657
Output for 5.5.27
<hr>0.9379899502
Output for 5.5.26
<hr>0.9456291199
Output for 5.5.25
<hr>0.9515190125
Output for 5.5.24
<hr>0.892524004
Output for 5.5.23
<hr>0.9311590195
Output for 5.5.22
<hr>0.8222661018
Output for 5.5.21
<hr>0.9261419773
Output for 5.5.20
<hr>0.9703559875
Output for 5.5.19
<hr>0.8843100071
Output for 5.5.18
<hr>0.8370518684
Output for 5.5.16
<hr>0.9354050159
Output for 5.5.15
<hr>0.8491649628
Output for 5.5.14
<hr>0.9749009609
Output for 5.5.13
<hr>0.8684990406
Output for 5.5.12
<hr>0.8433120251
Output for 5.5.11
<hr>1.0067739487
Output for 5.5.10
<hr>1.0064821243
Output for 5.5.9
<hr>0.9251561165
Output for 5.5.8
<hr>0.9938948154
Output for 5.5.7
<hr>0.9561579227
Output for 5.5.6
<hr>0.9185700417
Output for 5.5.5
<hr>0.9692878723
Output for 5.5.4
<hr>0.8258781433
Output for 5.5.3
<hr>0.9270079136
Output for 5.5.2
<hr>0.9662401676
Output for 5.5.1
<hr>0.9764928818
Output for 5.5.0
<hr>0.963269949
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/hTd8Q 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/hTd8Q 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/hTd8Q 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/hTd8Q on line 14