3v4l.org

run code in 300+ PHP versions simultaneously
<?php for ($i = 18; $i < 23; ++$i) { $hash = '$2y$10$' . str_repeat('A', $i + 1); $sum = 0.0; for ($j = 0; $j < 5; ++$j) { $start = microtime(true); password_verify('a', $hash); $end = microtime(true); $sum += $end - $start; unset($start, $end); } printf("%02d: %.5f\n", $i + 1, $sum / 30); }
Output for 8.0.9
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00944 23: 0.00936
Output for 7.0.22, 7.0.33, 7.2.6, 7.2.15, 7.3.12, 7.3.28, 8.0.6, 8.0.8
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00936 23: 0.00936
Output for 8.0.7
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00937 23: 0.00944
Output for 5.6.15, 5.6.40, 7.2.34, 8.0.5
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00938 23: 0.00937
Output for 8.0.3
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00935 23: 0.00942
Output for 7.1.17, 8.0.2
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00935 23: 0.00938
Output for 8.0.1
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00948 23: 0.00938
Output for 8.0.0
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00943 23: 0.00946
Output for 7.4.22
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00940 23: 0.00943
Output for 7.4.21
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00945 23: 0.00936
Output for 7.0.8, 7.3.6, 7.4.20
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00937 23: 0.00943
Output for 7.3.15, 7.4.19
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00946 23: 0.00937
Output for 7.4.18
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00947 23: 0.00936
Output for 7.3.17, 7.4.16
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00938 23: 0.00948
Output for 7.0.19, 7.4.15
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00936 23: 0.00938
Output for 5.6.33, 7.0.14, 7.3.2, 7.3.29, 7.4.14
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00937 23: 0.00936
Output for 7.1.0, 7.1.12, 7.4.13
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00937 23: 0.00939
Output for 7.1.33, 7.2.4, 7.4.12
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00937 23: 0.00941
Output for 7.1.7, 7.2.18, 7.3.11, 7.4.11
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00941 23: 0.00939
Output for 7.4.10
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00988 23: 0.00992
Output for 7.4.9
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00983 23: 0.00934
Output for 5.6.34, 7.4.8
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00938 23: 0.00940
Output for 7.4.7
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00953 23: 0.00946
Output for 7.4.6
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00990 23: 0.01003
Output for 7.4.5
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00962 23: 0.00936
Output for 7.4.4
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00940 23: 0.00946
Output for 7.0.32, 7.4.3
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00936 23: 0.00941
Output for 7.4.2
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00941 23: 0.00934
Output for 7.4.1
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00939 23: 0.00947
Output for 7.0.26, 7.2.20, 7.3.16, 7.4.0
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00937 23: 0.00937
Output for 7.2.22, 7.3.27
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00945 23: 0.00937
Output for 5.6.7, 7.1.14, 7.3.26
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00941 23: 0.00936
Output for 7.2.13, 7.2.25, 7.3.25
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00940 23: 0.00935
Output for 5.6.39, 7.1.3, 7.3.24
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00935 23: 0.00941
Output for 7.3.23
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00963 23: 0.00941
Output for 7.3.22
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00937 23: 0.00942
Output for 7.1.18, 7.3.21
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00937 23: 0.00938
Output for 7.3.0, 7.3.20
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00942 23: 0.00936
Output for 7.3.19
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00934 23: 0.00937
Output for 5.6.17 - 5.6.18, 5.6.24, 5.6.31, 7.0.0, 7.0.7, 7.3.18
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00935 23: 0.00934
Output for 7.1.32, 7.3.14
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00937 23: 0.00945
Output for 7.3.13
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00948 23: 0.00936
Output for 7.1.30, 7.3.10
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00946 23: 0.00936
Output for 7.2.30, 7.3.9
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00941 23: 0.00935
Output for 7.3.8
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00946 23: 0.00974
Output for 7.3.7
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00991 23: 0.00958
Output for 7.0.18, 7.3.5
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00944 23: 0.00942
Output for 7.3.4
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00941 23: 0.00937
Output for 5.6.8, 5.6.19 - 5.6.20, 5.6.28, 5.6.36, 7.0.5, 7.0.12, 7.0.15, 7.0.25, 7.0.29, 7.2.8, 7.3.3
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00935 23: 0.00935
Output for 7.2.3, 7.3.1
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00948 23: 0.00935
Output for 7.2.33
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00936 23: 0.00937
Output for 7.2.32
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00938 23: 0.00936
Output for 7.2.31
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00942 23: 0.00937
Output for 7.2.29
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00935 23: 0.00948
Output for 5.6.29, 5.6.37, 7.2.28
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00938 23: 0.00934
Output for 7.2.27
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00939 23: 0.00942
Output for 5.6.0, 5.6.25, 7.2.26
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00935 23: 0.00936
Output for 7.0.6, 7.2.24
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00936 23: 0.00934
Output for 5.6.32, 7.2.23
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00934 23: 0.00935
Output for 7.2.21
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00951 23: 0.00940
Output for 7.2.19
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00943 23: 0.00938
Output for 7.1.1, 7.2.17
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00943 23: 0.00937
Output for 7.2.16
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00938 23: 0.00941
Output for 7.2.14
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00937 23: 0.00940
Output for 5.6.9, 7.2.12
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00939 23: 0.00935
Output for 7.2.0, 7.2.11
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00936 23: 0.00940
Output for 7.1.31, 7.2.10
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00940 23: 0.00936
Output for 7.2.9
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00943 23: 0.00934
Output for 7.2.7
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00948 23: 0.00939
Output for 7.2.5
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00935 23: 0.00940
Output for 5.6.3, 5.6.23, 5.6.38, 7.0.13, 7.0.17, 7.0.23, 7.1.21, 7.2.2
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00936 23: 0.00935
Output for 7.2.1
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00943 23: 0.00936
Output for 7.1.29
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00942 23: 0.00954
Output for 7.1.28
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00941 23: 0.00951
Output for 7.1.27
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00979 23: 0.00973
Output for 7.1.26
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00970 23: 0.00936
Output for 5.6.6, 7.0.1, 7.1.25
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00937 23: 0.00935
Output for 7.1.24
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00949 23: 0.00936
Output for 7.1.23
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00943 23: 0.00935
Output for 7.0.11, 7.1.22
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00950 23: 0.00936
Output for 7.1.20
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00934 23: 0.00955
Output for 7.1.19
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00938 23: 0.00939
Output for 7.1.16
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00936 23: 0.00943
Output for 7.0.31, 7.1.15
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00935 23: 0.00945
Output for 7.1.13
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00949 23: 0.00935
Output for 5.6.10, 7.1.11
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00935 23: 0.00946
Output for 7.1.10
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00990 23: 0.00993
Output for 7.1.9
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00958 23: 0.00941
Output for 5.6.27, 7.1.8
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00944 23: 0.00935
Output for 7.1.6
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00983 23: 0.00984
Output for 7.1.5
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00957 23: 0.00942
Output for 7.1.4
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00946 23: 0.00940
Output for 7.1.2
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00936 23: 0.00944
Output for 7.0.30
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00942 23: 0.00935
Output for 7.0.28
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00944 23: 0.00934
Output for 5.6.21, 7.0.27
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00937 23: 0.00934
Output for 7.0.24
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00935 23: 0.00949
Output for 7.0.21
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00936 23: 0.00949
Output for 7.0.20
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00943 23: 0.00941
Output for 5.6.11, 7.0.16
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00939 23: 0.00934
Output for 7.0.10
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00940 23: 0.00934
Output for 5.6.22, 7.0.9
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00935 23: 0.00939
Output for 7.0.4
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00946 23: 0.00935
Output for 7.0.3
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00939 23: 0.00936
Output for 7.0.2
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00937 23: 0.00946
Output for 5.6.35
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00949 23: 0.00938
Output for 5.6.26, 5.6.30
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00934 23: 0.00934
Output for 5.6.16
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00934 23: 0.00942
Output for 5.6.14
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00960 23: 0.00976
Output for 5.6.13
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00975 23: 0.00938
Output for 5.6.12
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00942 23: 0.00934
Output for 5.6.5
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00936 23: 0.00947
Output for 5.6.4
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00936 23: 0.00939
Output for 5.6.2
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00936 23: 0.00942
Output for 5.6.1
19: 0.00002 20: 0.00002 21: 0.00002 22: 0.00945 23: 0.00943

preferences:
44.16 ms | 580 KiB | 5 Q