3v4l.org

run code in 300+ PHP versions simultaneously
<?php $options = [ 'cost' => 7, 'salt' => 'BCryptRequires22Chrcts', ]; $hash['hash'][] = password_hash("rasmuslerdorf", PASSWORD_BCRYPT, $options); $hash['hash'][] = password_hash("rasmuslerdorf", PASSWORD_DEFAULT); $hash['info'][] = password_get_info($hash['hash'][0]); $hash['info'][] = password_get_info($hash['hash'][1]); $hash['rehash'][] = password_needs_rehash($hash['hash'][0],PASSWORD_BCRYPT,$options); $hash['rehash'][] = password_needs_rehash($hash['hash'][0],PASSWORD_DEFAULT); var_dump($hash);

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.3.10.0030.08216.45
7.3.00.0070.07416.68
7.2.130.0030.07916.91
7.2.120.0000.08016.98
7.2.110.0070.07616.85
7.2.100.0070.07817.03
7.2.90.0100.07416.93
7.2.80.0030.08116.95
7.2.70.0100.07316.83
7.2.60.0210.07316.83
7.2.50.0100.07416.96
7.2.40.0070.07616.88
7.2.30.0100.07316.97
7.2.20.0070.07616.68
7.2.10.0030.07916.66
7.2.00.0100.07316.90
7.1.250.0100.07215.63
7.1.200.0060.07515.60
7.1.100.0070.07418.07
7.1.70.0070.08817.10
7.1.60.0170.12719.24
7.1.50.0070.07017.09
7.1.00.0030.17722.46
7.0.200.3340.07514.84
7.0.140.0000.17322.09
7.0.100.0170.14019.99
7.0.90.0300.17019.89
7.0.80.0200.16320.00
7.0.70.0230.17019.91
7.0.60.0170.16019.91
7.0.50.0030.17020.31
7.0.40.0100.15020.05
7.0.30.0100.15320.19
7.0.20.0070.16020.18
7.0.10.0030.14320.21
7.0.00.0070.16720.16
5.6.250.0130.14720.59
5.6.240.0070.17720.79
5.6.230.0030.18320.75
5.6.220.0130.15320.64
5.6.210.0170.17020.70
5.6.200.0070.17321.18
5.6.190.0030.16321.08
5.6.180.0130.15721.08
5.6.170.0070.16721.03
5.6.160.0130.16321.01
5.6.150.0100.17021.06
5.6.140.0130.16021.08
5.6.130.0100.18020.97
5.6.120.0070.16721.06
5.6.110.0000.17721.05
5.6.100.0070.15321.16
5.6.90.0070.17321.01
5.6.80.0070.12020.55
5.6.70.0170.14720.53
5.6.60.0070.16720.42
5.6.50.0070.13320.44
5.6.40.0170.15020.52
5.6.30.0030.16320.48
5.6.20.0170.17020.50
5.6.10.0130.16020.43
5.6.00.0070.16020.42
5.5.380.0230.16020.34
5.5.370.0130.17720.38
5.5.360.0030.16320.36
5.5.350.0070.13320.48
5.5.340.0100.12020.89
5.5.330.0100.14720.90
5.5.320.0070.15720.79
5.5.310.0430.12020.88
5.5.300.0130.15020.88
5.5.290.0100.14720.89
5.5.280.0100.15720.86
5.5.270.0100.17320.89
5.5.260.0100.12320.79
5.5.250.0330.12020.68
5.5.240.0070.16020.34
5.5.230.0130.15020.23
5.5.220.0100.17020.29
5.5.210.0070.12020.17
5.5.200.0100.16320.27
5.5.190.0030.17720.27
5.5.180.0070.12020.27
5.5.160.0230.13320.23
5.5.150.0000.12320.27
5.5.140.0030.15720.20
5.5.130.0100.10720.18
5.5.120.0030.12720.18
5.5.110.0100.12320.30
5.5.100.0070.16020.04
5.5.90.0070.16320.04
5.5.80.0070.11720.09
5.5.70.0070.15320.09
5.5.60.0030.15720.15
5.5.50.0170.15020.09
5.5.40.0070.17020.18
5.5.30.0130.16020.10
5.5.20.0070.16720.11
5.5.10.0170.15320.14
5.5.00.0130.16020.03
5.4.450.0170.07719.36
5.4.440.0100.07319.27
5.4.430.0070.07719.34
5.4.420.0000.05019.10
5.4.410.0030.07018.98
5.4.400.0100.07319.07
5.4.390.0030.08019.06
5.4.380.0030.07719.04
5.4.370.0130.07319.14
5.4.360.0030.08019.04
5.4.350.0270.05019.05
5.4.340.0070.05719.10
5.4.320.0100.07318.97
5.4.310.0070.05718.82
5.4.300.0030.07718.95
5.4.290.0130.06718.90
5.4.280.0070.07318.79
5.4.270.0200.06018.94
5.4.260.0030.04719.04
5.4.250.0070.05719.22
5.4.240.0170.06019.10
5.4.230.0130.07018.98
5.4.220.0070.07718.98
5.4.210.0070.07319.23
5.4.200.0030.07719.04
5.4.190.0030.07718.98
5.4.180.0100.05019.22
5.4.170.0030.08319.12
5.4.160.0130.06719.05
5.4.150.0100.07719.00
5.4.140.0130.07716.37
5.4.130.0100.07016.27
5.4.120.0100.06716.12
5.4.110.0030.08316.21
5.4.100.0130.05316.21
5.4.90.0030.07716.34
5.4.80.0070.03716.29
5.4.70.0030.07316.22
5.4.60.0100.07716.32
5.4.50.0030.06016.30
5.4.40.0100.07316.29
5.4.30.0030.06716.36
5.4.20.0130.06016.36
5.4.10.0030.04716.18
5.4.00.0000.07715.71
5.3.290.0000.08014.66
5.3.280.0130.06714.44
5.3.270.0030.08714.47
5.3.260.0130.08014.61
5.3.250.0070.04314.60
5.3.240.0070.08014.59
5.3.230.0100.06714.54
5.3.220.0030.07714.56
5.3.210.0030.07314.56
5.3.200.0100.07014.56
5.3.190.0070.05014.57
5.3.180.0130.07014.43
5.3.170.0070.06714.55
5.3.160.0130.06014.55
5.3.150.0000.04714.48
5.3.140.0030.08014.47
5.3.130.0070.07314.54
5.3.120.0070.07714.48
5.3.110.0070.07714.52
5.3.100.0030.07714.04
5.3.90.0030.05713.99
5.3.80.0000.04013.98
5.3.70.0030.03714.00
5.3.60.0130.07013.94
5.3.50.0030.04313.94
5.3.40.0030.04313.94
5.3.30.0070.06013.89
5.3.20.0030.07313.57
5.3.10.0030.05713.57
5.3.00.0000.05313.50
5.2.170.0070.04711.14
5.2.160.0030.03011.16
5.2.150.0130.02310.99
5.2.140.0000.03710.98
5.2.130.0030.03311.14
5.2.120.0070.06010.92
5.2.110.0030.03711.12
5.2.100.0030.06311.16
5.2.90.0030.05310.96
5.2.80.0030.06310.94
5.2.70.0070.06311.09
5.2.60.0100.05711.06
5.2.50.0030.06010.94
5.2.40.0030.04011.03
5.2.30.0100.05710.98
5.2.20.0030.06010.96
5.2.10.0070.04010.79
5.2.00.0030.06310.74
5.1.60.0000.05310.04
5.1.50.0030.05310.00
5.1.40.0030.0479.88
5.1.30.0030.03710.40
5.1.20.0000.05710.29
5.1.10.0130.04710.07
5.1.00.0030.05010.09
5.0.50.0030.0378.61
5.0.40.0030.0478.45
5.0.30.0030.0638.36
5.0.20.0030.0408.36
5.0.10.0030.0308.36
5.0.00.0070.0608.36
4.4.90.0030.0178.36
4.4.80.0070.0338.36
4.4.70.0000.0208.36
4.4.60.0070.0308.36
4.4.50.0000.0378.36
4.4.40.0030.0338.36
4.4.30.0030.0338.36
4.4.20.0100.0278.36
4.4.10.0070.0238.36
4.4.00.0000.0538.36
4.3.110.0000.0378.36
4.3.100.0030.0238.36
4.3.90.0030.0278.36
4.3.80.0030.0238.36
4.3.70.0000.0278.36
4.3.60.0000.0208.36
4.3.50.0030.0378.36
4.3.40.0000.0578.36
4.3.30.0070.0338.36
4.3.20.0000.0378.36
4.3.10.0030.0278.36
4.3.00.0000.0278.36

preferences:
35.35 ms | 400 KiB | 5 Q