3v4l.org

run code in 300+ PHP versions simultaneously
<?php $setting = '$2y$04$'; $salt = '1234567890123456789012'; // SAME SALT FOR ALL PASSWORDS, OMG, DON'T $str = '123456789012345678901234567890123456789012345678901234567890123456789012'; $passwd1 = $str . 'A'; $passwd2 = $str . 'B'; $hash1 = password_hash($passwd1, PASSWORD_BCRYPT, array('cost'=>10)); $hash2 = password_hash($passwd2, PASSWORD_BCRYPT, array('cost'=>10)); echo ($hash1 === $hash2 ? 'same' : 'unique');

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.2.60.0070.13116.78
7.2.00.0030.13519.25
7.1.200.0000.13515.79
7.1.100.0000.13818.01
7.1.70.0070.12017.20
7.1.60.0030.17319.40
7.1.50.0070.12717.11
7.1.00.0030.18722.36
7.0.200.0470.12116.67
7.0.140.0070.22022.09
7.0.120.0000.15322.08
7.0.60.0070.19019.88
7.0.50.0000.17017.75
7.0.40.0100.21320.06
7.0.30.0230.18320.08
7.0.20.0130.17020.21
7.0.10.0070.23720.20
7.0.00.0200.22020.27
5.6.210.0030.16320.50
5.6.200.0030.22718.19
5.6.190.0070.27020.57
5.6.180.0330.20720.59
5.6.170.0270.20320.56
5.6.160.0030.23320.54
5.6.150.0000.20318.20
5.6.140.0130.21718.13
5.6.130.0070.22718.11
5.6.120.0070.22020.95
5.6.110.0000.16321.02
5.6.100.0030.16020.98
5.6.90.0070.22321.07
5.6.80.0070.20720.35
5.6.70.0270.22320.26
5.5.350.0270.21720.43
5.5.340.0130.20317.98
5.5.330.0100.19720.21
5.5.320.0100.22720.40
5.5.310.0270.17020.28
5.5.300.0000.23017.98
5.5.290.0100.17317.95
5.5.280.0130.15020.89
5.5.270.0030.17320.76
5.5.260.0100.21020.92
5.5.250.0070.23020.54
5.5.240.0100.22020.06
5.4.450.0300.07319.26
5.4.440.0200.05019.38
5.4.430.0300.07319.23
5.4.420.0300.05719.57
5.4.410.0300.07019.27
5.4.400.0470.03719.08
5.4.390.0330.07319.09
5.4.380.0270.04319.08
5.4.370.0130.05018.92
5.4.360.0270.07019.06
5.4.350.0200.07319.24
5.4.340.0200.07019.09
5.4.320.0300.04019.15
5.4.310.0330.07019.06
5.4.300.0230.05019.24
5.4.290.0230.05019.08
5.4.280.0200.03319.13
5.4.270.0130.06319.09
5.4.260.0230.06319.13
5.4.250.0300.07019.15
5.4.240.0200.07718.80
5.4.230.0270.06319.15
5.4.220.0230.07718.92
5.4.210.0200.04719.14
5.4.200.0300.06319.26
5.4.190.0000.05018.79
5.4.180.0170.03718.87
5.4.170.0170.05319.21
5.4.160.0300.06318.78
5.4.150.0130.05719.23
5.4.140.0100.06316.29
5.4.130.0230.07316.33
5.4.120.0200.03716.28
5.4.110.0270.04716.21
5.4.100.0330.06316.41
5.4.90.0270.05716.06
5.4.80.0300.06316.20
5.4.70.0270.06016.05
5.4.60.0270.06016.37
5.4.50.0200.03316.20
5.4.40.0270.06316.41
5.4.30.0230.04716.36
5.4.20.0200.05016.27
5.4.10.0270.07016.18
5.4.00.0300.05715.82
5.3.290.0270.07314.59
5.3.280.0200.07314.43
5.3.270.0300.06314.55
5.3.260.0170.04714.55
5.3.250.0270.07014.44
5.3.240.0170.04014.41
5.3.230.0130.06014.50
5.3.220.0200.07014.55
5.3.210.0200.04714.40
5.3.200.0270.05014.51
5.3.190.0200.07314.59
5.3.180.0230.05314.50
5.3.170.0230.07314.51
5.3.160.0230.06014.42
5.3.150.0170.04014.42
5.3.140.0270.03014.41
5.3.130.0270.04314.59
5.3.120.0170.08014.59
5.3.110.0200.07714.41
5.3.100.0230.07013.87
5.3.90.0270.06313.87
5.3.80.0230.07014.06
5.3.70.0170.03713.89
5.3.60.0200.05713.96
5.3.50.0230.05013.80
5.3.40.0270.04714.05
5.3.30.0300.03713.84
5.3.20.0170.04313.53
5.3.10.0300.06013.56
5.3.00.0370.04713.41
5.2.170.0170.03012.59
5.2.160.0270.04712.59
5.2.150.0200.06012.59
5.2.140.0200.04712.59
5.2.130.0130.03012.59
5.2.120.0230.03312.59
5.2.110.0200.05312.59
5.2.100.0230.05012.59
5.2.90.0200.05712.59
5.2.80.0270.05712.59
5.2.70.0170.06012.59
5.2.60.0170.05312.59
5.2.50.0270.02312.59
5.2.40.0130.03012.59
5.2.30.0200.04712.59
5.2.20.0130.06312.59
5.2.10.0230.05012.59
5.2.00.0130.05312.59
5.1.60.0170.05012.59
5.1.50.0100.06012.59
5.1.40.0230.04312.59
5.1.30.0270.02312.59
5.1.20.0130.05012.59
5.1.10.0230.04012.59
5.1.00.0170.05712.59
5.0.50.0070.04312.59
5.0.40.0100.04312.59
5.0.30.0130.05312.59
5.0.20.0130.02312.59
5.0.10.0030.03012.59
5.0.00.0100.03012.59
4.4.90.0070.02712.59
4.4.80.0070.02012.59
4.4.70.0130.03012.59
4.4.60.0130.03312.59
4.4.50.0130.03012.59
4.4.40.0200.02712.59
4.4.30.0170.03012.59
4.4.20.0100.03012.59
4.4.10.0070.02012.59
4.4.00.0070.03312.59
4.3.110.0100.01712.59
4.3.100.0070.03012.59
4.3.90.0100.01712.59
4.3.80.0000.03312.59
4.3.70.0070.03012.59
4.3.60.0130.02712.59
4.3.50.0100.03012.59
4.3.40.0070.04312.59
4.3.30.0030.04012.59
4.3.20.0100.02012.59
4.3.10.0030.02312.59
4.3.00.0030.02312.59

preferences:
35.31 ms | 401 KiB | 5 Q