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'] = 12; for($i=0;$i<10;$i++) { $p = password_hash('toto', PASSWORD_BCRYPT, $options); } echo'<hr>'; echo round(chrono()-$debut,10);
Output for 7.1.0
<hr>2.1728630066
Output for 7.0.14
<hr>2.1863949299
Output for 7.0.7
<hr>2.1043109894
Output for 7.0.6
<hr>2.0126199722
Output for 7.0.5
<hr>2.1330201626
Output for 7.0.4
<hr>2.2315950394
Output for 7.0.3
<hr>2.1978669167
Output for 7.0.2
<hr>2.0961081982
Output for 7.0.1
<hr>2.0124189854
Output for 7.0.0
<hr>2.171257019
Output for 5.6.28
<hr>2.2071969509
Output for 5.6.22
<hr>2.2020301819
Output for 5.6.21
<hr>2.1871759892
Output for 5.6.20
<hr>2.2076499462
Output for 5.6.19
<hr>2.2696690559
Output for 5.6.18
<hr>2.0066800117
Output for 5.6.17
<hr>2.1587839127
Output for 5.6.16
<hr>2.023195982
Output for 5.6.15
<hr>2.0014109612
Output for 5.6.14
<hr>2.1824600697
Output for 5.6.13
<hr>2.0175220966
Output for 5.6.12
<hr>2.1557400227
Output for 5.6.11
<hr>2.1508889198
Output for 5.6.10
<hr>2.1965539455
Output for 5.6.9
<hr>2.17811203
Output for 5.6.8
<hr>2.0973629951
Output for 5.6.7
<hr>2.1341910362
Output for 5.6.6
<hr>2.1504819393
Output for 5.6.5
<hr>2.2080550194
Output for 5.6.4
<hr>2.0488581657
Output for 5.6.3
<hr>2.2161002159
Output for 5.6.2
<hr>2.1899111271
Output for 5.6.1
<hr>2.2180190086
Output for 5.6.0
<hr>2.0378081799
Output for 5.5.36
<hr>2.1793630123
Output for 5.5.35
<hr>2.2048017979
Output for 5.5.34
<hr>2.0316059589
Output for 5.5.33
<hr>2.219149828
Output for 5.5.32
<hr>2.0050621033
Output for 5.5.31
<hr>2.2171170712
Output for 5.5.30
<hr>2.2039780617
Output for 5.5.29
<hr>2.207616806
Output for 5.5.28
<hr>2.211368084
Output for 5.5.27
<hr>2.2160279751
Output for 5.5.26
<hr>2.157957077
Output for 5.5.25
<hr>2.1807289124
Output for 5.5.24
<hr>2.2136759758
Output for 5.5.23
<hr>2.0458981991
Output for 5.5.22
<hr>2.2006440163
Output for 5.5.21
<hr>2.2056109905
Output for 5.5.20
<hr>2.227645874
Output for 5.5.19
<hr>2.1779549122
Output for 5.5.18
<hr>2.1436347961
Output for 5.5.16
<hr>2.1522960663
Output for 5.5.15
<hr>2.2252469063
Output for 5.5.14
<hr>2.1916000843
Output for 5.5.13
<hr>2.0447227955
Output for 5.5.12
<hr>2.0621061325
Output for 5.5.11
<hr>2.160378933
Output for 5.5.10
<hr>2.209291935
Output for 5.5.9
<hr>2.2119300365
Output for 5.5.8
<hr>2.0465629101
Output for 5.5.7
<hr>2.0690629482
Output for 5.5.6
<hr>2.087774992
Output for 5.5.5
<hr>2.0129611492
Output for 5.5.4
<hr>2.0185940266
Output for 5.5.3
<hr>2.1735990047
Output for 5.5.2
<hr>2.1621420383
Output for 5.5.1
<hr>2.0278999805
Output for 5.5.0
<hr>2.1507411003
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/OC7iK 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/OC7iK 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/OC7iK 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/OC7iK on line 14