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); $hash2 = password_hash(passwd2, PASSWORD_BCRYPT); 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.3.00.0130.12816.45
7.2.130.0130.13216.53
7.2.120.0130.13016.90
7.2.110.0200.13216.68
7.2.100.0100.12916.89
7.2.90.0100.12816.95
7.2.80.0100.13116.80
7.2.70.0060.13417.00
7.2.60.0070.13416.84
7.2.50.0100.13416.82
7.2.40.0160.12816.92
7.2.30.0030.13617.05
7.2.20.0030.13516.89
7.2.10.0160.12517.01
7.2.00.0100.13218.22
7.1.250.0100.13015.83
7.1.240.0070.14015.61
7.1.230.0130.13315.70
7.1.220.0100.13415.71
7.1.210.0070.13215.59
7.1.200.0100.13115.72
7.1.190.0030.13415.71
7.1.180.0030.13215.96
7.1.170.0100.13415.78
7.1.160.0070.13615.59
7.1.150.0100.12815.78
7.1.140.0100.12815.88
7.1.130.0100.12915.72
7.1.120.0100.13115.93
7.1.110.0100.14315.57
7.1.100.0130.13216.87
7.1.90.0140.13315.85
7.1.80.0100.13515.77
7.1.70.0100.12816.61
7.1.60.0050.17117.91
7.1.50.0080.16716.21
7.1.40.0130.12515.91
7.1.30.0100.13115.93
7.1.20.0100.12715.79
7.1.10.0210.13315.68
7.1.00.0100.13319.11
7.0.330.0140.13215.13
7.0.320.0100.12915.34
7.0.310.0130.12515.32
7.0.300.0130.12615.11
7.0.290.0170.11915.33
7.0.280.0100.12815.31
7.0.270.0130.12615.37
7.0.260.0100.12615.44
7.0.250.0130.12715.23
7.0.240.0100.12815.37
7.0.230.0070.13015.46
7.0.220.0130.12315.42
7.0.210.0070.13315.32
7.0.200.0030.13016.16
7.0.190.0100.12415.38
7.0.180.0100.12515.41
7.0.170.0070.13315.39
7.0.160.0160.12315.38
7.0.150.0100.13615.35
7.0.140.0070.18118.61
7.0.130.0130.13815.42
7.0.120.0100.13215.34
7.0.110.0080.13015.39
7.0.100.0170.12915.39
7.0.90.0100.13715.47
7.0.80.0070.13015.15
7.0.70.0100.12715.09
7.0.60.0050.17417.67
7.0.50.0070.14916.74
7.0.40.0080.15516.77
7.0.30.0130.14916.97
7.0.20.0150.14716.82
7.0.10.0050.15116.85
7.0.00.0030.18416.64
5.6.380.0100.13614.13
5.6.370.0100.13014.31
5.6.360.0030.13713.84
5.6.350.0100.12613.90
5.6.340.0160.12014.34
5.6.330.0030.13114.73
5.6.320.0100.12714.53
5.6.310.0070.13014.37
5.6.300.0100.12414.61
5.6.290.0070.12914.48
5.6.280.0000.18517.72
5.6.270.0030.13414.28
5.6.260.0100.12814.44
5.6.250.0030.13514.36
5.6.240.0070.13314.25
5.6.230.0070.13514.30
5.6.220.0030.13314.20
5.6.210.0030.18117.44
5.6.200.0100.17116.04
5.6.190.0110.16417.37
5.6.180.1970.15117.28
5.6.170.0200.15317.40
5.6.160.0050.17617.32
5.6.150.0080.16716.37
5.6.140.0080.15016.16
5.6.130.0030.15516.22
5.6.120.0030.17917.53
5.6.110.0070.17017.80
5.6.100.0030.17717.83
5.6.90.0080.17017.49
5.6.80.0020.17917.28
5.6.70.0050.18317.41
5.6.60.0030.13114.11
5.6.50.0030.12814.38
5.6.40.0030.13114.16
5.6.30.0070.13114.43
5.6.20.0000.13814.02
5.6.10.0030.13114.16
5.6.00.0100.12814.29
5.5.380.0070.12511.32
5.5.370.0030.12911.18
5.5.360.0030.13211.18
5.5.350.0150.17415.81
5.5.340.0070.14914.60
5.5.330.0070.17515.68
5.5.320.0120.16815.79
5.5.310.0130.15515.77
5.5.300.0050.17914.56
5.5.290.0100.16114.57
5.5.280.0080.17416.01
5.5.270.0170.15715.97
5.5.260.0050.15816.03
5.5.250.0020.17115.82
5.5.240.0120.16415.66
5.5.230.0030.12711.18
5.5.220.0000.13211.18
5.5.210.0000.12811.18
5.5.200.0070.12411.18
5.5.190.0100.13211.21
5.5.180.0000.13111.18
5.5.170.0070.12611.18
5.5.160.0000.13111.18
5.5.150.0030.13611.18
5.5.140.0070.13611.18
5.5.130.0030.12811.18
5.5.120.0000.13311.20
5.5.110.0030.13011.21
5.5.100.0070.13711.18
5.5.90.0000.13011.18
5.5.80.0070.12711.18
5.5.70.0030.13011.18
5.5.60.0070.12611.18
5.5.50.0030.12811.18
5.5.40.0030.13011.18
5.5.30.0030.13311.18
5.5.20.0030.13411.23
5.5.10.0030.12611.18
5.5.00.0100.12611.19
5.4.450.0190.03515.21
5.4.440.0400.02815.33
5.4.430.0420.02915.37
5.4.420.0520.03815.33
5.4.410.0350.03215.31
5.4.400.0510.03214.86
5.4.390.0500.03214.84
5.4.380.0120.03014.88
5.4.370.0130.02314.95
5.4.360.0130.02214.88
5.4.350.0040.02411.57
5.4.340.0060.02311.57
5.4.330.0030.00611.18
5.4.320.0040.02111.81
5.4.310.0050.02211.81
5.4.300.0050.02111.82
5.4.290.0020.02411.81
5.4.280.0050.02111.76
5.4.270.0090.01511.76
5.4.260.0020.02511.76
5.4.250.0070.02715.03
5.4.240.0060.02915.04
5.4.230.0070.02515.02
5.4.220.0050.03215.04
5.4.210.0050.02715.09
5.4.200.0050.02815.04
5.4.190.0080.02915.08
5.4.180.0090.02514.95
5.4.170.0050.02615.05
5.4.160.0070.02515.03
5.4.150.0040.02915.05
5.4.140.0070.02813.82
5.4.130.0100.02513.88
5.4.120.0090.02313.69
5.4.110.0070.02613.72
5.4.100.0120.02313.83
5.4.90.0020.03013.77
5.4.80.0050.02813.78
5.4.70.0090.02613.77
5.4.60.0050.02713.74
5.4.50.0070.02613.72
5.4.40.0030.02913.77
5.4.30.0090.02313.74
5.4.20.0050.02813.77
5.4.10.0050.03113.70
5.4.00.0080.02713.45
5.3.290.0090.02611.99
5.3.280.0000.03012.83
5.3.270.0070.02912.90
5.3.260.0030.03112.89
5.3.250.0110.02212.89
5.3.240.0100.02312.89
5.3.230.0040.03012.89
5.3.220.0060.02612.83
5.3.210.0030.03412.95
5.3.200.0050.02612.79
5.3.190.0080.02312.87
5.3.180.0030.02912.72
5.3.170.0050.02812.83
5.3.160.0080.02512.76
5.3.150.0000.03012.76
5.3.140.0050.02712.88
5.3.130.0040.03112.79
5.3.120.0030.02912.91
5.3.110.0030.03012.71
5.3.100.0100.02612.52
5.3.90.0100.02712.52
5.3.80.0120.03112.60
5.3.70.0050.03812.64
5.3.60.0120.02512.51
5.3.50.0100.03012.56
5.3.40.0050.02712.45
5.3.30.0040.02712.55
5.3.20.0060.02612.37
5.3.10.0090.02312.42
5.3.00.0090.02312.33
5.2.170.0030.02511.04
5.2.160.0050.02011.20
5.2.150.0030.02311.10
5.2.140.0000.02511.04
5.2.130.0050.02211.14
5.2.120.0100.01511.10
5.2.110.0020.02711.02
5.2.100.0050.02211.14
5.2.90.0030.02211.14
5.2.80.0050.02211.09
5.2.70.0020.02411.01
5.2.60.0050.02111.12
5.2.50.0020.02211.05
5.2.40.0020.02311.13
5.2.30.0020.03011.13
5.2.20.0030.02211.07
5.2.10.0020.02110.97
5.2.00.0030.02810.98
5.1.60.0070.02210.61
5.1.50.0050.01910.70
5.1.40.0030.01910.55
5.1.30.0060.01710.67
5.1.20.0050.01810.73
5.1.10.0020.02310.63
5.1.00.0080.02210.64
5.0.50.0050.0159.83
5.0.40.0050.0159.81
5.0.30.0050.0239.71
5.0.20.0060.0159.68
5.0.10.0050.0189.63
5.0.00.0080.0279.74
4.4.90.0000.0148.47
4.4.80.0020.0128.46
4.4.70.0030.0118.47
4.4.60.0030.0128.50
4.4.50.0020.0128.48
4.4.40.0030.0188.54
4.4.30.0010.0158.54
4.4.20.0040.0128.53
4.4.10.0020.0178.51
4.4.00.0040.0198.52
4.3.110.0030.0138.52
4.3.100.0040.0128.43
4.3.90.0020.0178.43
4.3.80.0030.0178.44
4.3.70.0010.0118.42
4.3.60.0060.0128.43
4.3.50.0070.0148.39
4.3.40.0020.0188.42
4.3.30.0000.0158.27
4.3.20.0030.0158.27
4.3.10.0060.0098.27
4.3.00.0080.0149.77

preferences:
68.22 ms | 400 KiB | 5 Q