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<1;$i++) { $p = password_hash('toto', PASSWORD_BCRYPT, $options); } echo'<hr>'; echo round(chrono()-$debut,10);
Output for 7.1.0
<hr>0.2683780193
Output for 7.0.14
<hr>0.2624261379
Output for 7.0.10
<hr>0.2488729954
Output for 7.0.9
<hr>0.2483549118
Output for 7.0.8
<hr>0.2578938007
Output for 7.0.7
<hr>0.2455649376
Output for 7.0.6
<hr>0.2808489799
Output for 7.0.5
<hr>0.2633030415
Output for 7.0.4
<hr>0.2490279675
Output for 7.0.3
<hr>0.2573208809
Output for 7.0.2
<hr>0.2558469772
Output for 7.0.1
<hr>0.2100679874
Output for 7.0.0
<hr>0.2509849072
Output for hhvm-3.12.0
<hr>0.3159050941
Output for hhvm-3.10.0
<hr>0.3185589314
Output for 5.6.28
<hr>0.0539479256
Output for 5.6.25
<hr>0.2621250153
Output for 5.6.24
<hr>0.2511889935
Output for 5.6.23
<hr>0.2647590637
Output for 5.6.22
<hr>0.2454140186
Output for 5.6.21
<hr>0.2096600533
Output for 5.6.20
<hr>0.2661979198
Output for 5.6.19
<hr>0.2603178024
Output for 5.6.18
<hr>0.2219700813
Output for 5.6.17
<hr>0.2649388313
Output for 5.6.16
<hr>0.2573680878
Output for 5.6.15
<hr>0.2547512054
Output for 5.6.14
<hr>0.254791975
Output for 5.6.13
<hr>0.2473108768
Output for 5.6.12
<hr>0.26248312
Output for 5.6.11
<hr>0.2646842003
Output for 5.6.10
<hr>0.2648899555
Output for 5.6.9
<hr>0.2705118656
Output for 5.6.8
<hr>0.2042109966
Output for 5.6.7
<hr>0.242675066
Output for 5.6.6
<hr>0.2646160126
Output for 5.6.5
<hr>0.2700798512
Output for 5.6.4
<hr>0.2088310719
Output for 5.6.3
<hr>0.2457449436
Output for 5.6.2
<hr>0.2030119896
Output for 5.6.1
<hr>0.2083239555
Output for 5.6.0
<hr>0.2025718689
Output for 5.5.38
<hr>0.2705640793
Output for 5.5.37
<hr>0.2063260078
Output for 5.5.36
<hr>0.2642941475
Output for 5.5.35
<hr>0.2643690109
Output for 5.5.34
<hr>0.2753019333
Output for 5.5.33
<hr>0.2526409626
Output for 5.5.32
<hr>0.2841060162
Output for 5.5.31
<hr>0.2625448704
Output for 5.5.30
<hr>0.2703289986
Output for 5.5.29
<hr>0.2538409233
Output for 5.5.28
<hr>0.2730960846
Output for 5.5.27
<hr>0.2508699894
Output for 5.5.26
<hr>0.2306909561
Output for 5.5.25
<hr>0.2521920204
Output for 5.5.24
<hr>0.2782518864
Output for 5.5.23
<hr>0.2611329556
Output for 5.5.22
<hr>0.2524151802
Output for 5.5.21
<hr>0.2436509132
Output for 5.5.20
<hr>0.2085971832
Output for 5.5.19
<hr>0.2377841473
Output for 5.5.18
<hr>0.2393290997
Output for 5.5.16
<hr>0.2808289528
Output for 5.5.15
<hr>0.2033100128
Output for 5.5.14
<hr>0.2541680336
Output for 5.5.13
<hr>0.2478768826
Output for 5.5.12
<hr>0.2302701473
Output for 5.5.11
<hr>0.2398359776
Output for 5.5.10
<hr>0.2021141052
Output for 5.5.9
<hr>0.2084710598
Output for 5.5.8
<hr>0.2451610565
Output for 5.5.7
<hr>0.2064478397
Output for 5.5.6
<hr>0.2024140358
Output for 5.5.5
<hr>0.2483329773
Output for 5.5.4
<hr>0.2021989822
Output for 5.5.3
<hr>0.2667269707
Output for 5.5.2
<hr>0.2470941544
Output for 5.5.1
<hr>0.2478671074
Output for 5.5.0
<hr>0.2455921173
Output for 5.0.0 - 5.4.45
Fatal error: Call to undefined function password_hash() in /in/nDPjG 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/nDPjG 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/nDPjG 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/nDPjG on line 14