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'] = 13; 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.4908719063
Output for 7.0.14
<hr>0.469342947
Output for 7.0.11
<hr>0.4741609097
Output for 7.0.10
<hr>0.4389398098
Output for 7.0.9
<hr>0.568805933
Output for 7.0.8
<hr>0.4951560497
Output for 7.0.7
<hr>0.5038471222
Output for 7.0.6
<hr>0.5131440163
Output for 7.0.5
<hr>0.4832310677
Output for 7.0.4
<hr>0.4827342033
Output for 7.0.3
<hr>0.4921591282
Output for 7.0.2
<hr>0.4825150967
Output for 7.0.1
<hr>0.4822921753
Output for 7.0.0
<hr>0.4851191044
Output for hhvm-3.13.2
<hr>0.6614542007
Output for hhvm-3.12.0
<hr>0.6296319962
Output for hhvm-3.10.0
<hr>0.6349909306
Output for 5.6.28
<hr>0.0198090076
Output for 5.6.26
<hr>0.4987959862
Output for 5.6.25
<hr>0.5147659779
Output for 5.6.24
<hr>0.4983389378
Output for 5.6.23
<hr>0.4955739975
Output for 5.6.22
<hr>0.4911839962
Output for 5.6.21
<hr>0.4943962097
Output for 5.6.20
<hr>0.5001440048
Output for 5.6.19
<hr>0.5092849731
Output for 5.6.18
<hr>0.4813990593
Output for 5.6.17
<hr>0.4921951294
Output for 5.6.16
<hr>0.4639639854
Output for 5.6.15
<hr>0.4979920387
Output for 5.6.14
<hr>0.481347084
Output for 5.6.13
<hr>0.4968080521
Output for 5.6.12
<hr>0.4972369671
Output for 5.6.11
<hr>0.5041999817
Output for 5.6.10
<hr>0.4919309616
Output for 5.6.9
<hr>0.4867460728
Output for 5.6.8
<hr>0.5062868595
Output for 5.6.7
<hr>0.4969348907
Output for 5.6.6
<hr>0.5155928135
Output for 5.6.5
<hr>0.4948740005
Output for 5.6.4
<hr>0.4992189407
Output for 5.6.3
<hr>0.521889925
Output for 5.6.2
<hr>0.5006599426
Output for 5.6.1
<hr>0.4892139435
Output for 5.6.0
<hr>0.4992289543
Output for 5.5.38
<hr>0.4881780148
Output for 5.5.37
<hr>0.5054118633
Output for 5.5.36
<hr>0.4907009602
Output for 5.5.35
<hr>0.4975199699
Output for 5.5.34
<hr>0.4967041016
Output for 5.5.33
<hr>0.4969818592
Output for 5.5.32
<hr>0.4495148659
Output for 5.5.31
<hr>0.4380130768
Output for 5.5.30
<hr>0.4885540009
Output for 5.5.29
<hr>0.4922611713
Output for 5.5.28
<hr>0.4678959846
Output for 5.5.27
<hr>0.4980130196
Output for 5.5.26
<hr>0.4945211411
Output for 5.5.25
<hr>0.4973831177
Output for 5.5.24
<hr>0.5061519146
Output for 5.5.23
<hr>0.5117349625
Output for 5.5.22
<hr>0.5103971958
Output for 5.5.21
<hr>0.4907951355
Output for 5.5.20
<hr>0.5101239681
Output for 5.5.19
<hr>0.4994051456
Output for 5.5.18
<hr>0.5393779278
Output for 5.5.16
<hr>0.5145270824
Output for 5.5.15
<hr>0.5018239021
Output for 5.5.14
<hr>0.5082240105
Output for 5.5.13
<hr>0.49771595
Output for 5.5.12
<hr>0.4870998859
Output for 5.5.11
<hr>0.5209259987
Output for 5.5.10
<hr>0.5121510029
Output for 5.5.9
<hr>0.4127337933
Output for 5.5.8
<hr>0.4140601158
Output for 5.5.7
<hr>0.5264821053
Output for 5.5.6
<hr>0.5143699646
Output for 5.5.5
<hr>0.5014460087
Output for 5.5.4
<hr>0.4982619286
Output for 5.5.3
<hr>0.5223691463
Output for 5.5.2
<hr>0.5021281242
Output for 5.5.1
<hr>0.5039811134
Output for 5.5.0
<hr>0.512045145
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/MG60b 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/MG60b 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/MG60b 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/MG60b on line 14