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.4.10.0100.12514.71
7.4.00.0030.13914.59
7.3.130.0070.13814.76
7.3.120.0030.14114.61
7.3.110.0070.13914.90
7.3.100.0070.12914.62
7.3.90.0070.13214.48
7.3.80.0020.13314.81
7.3.70.0070.13114.81
7.3.60.0070.13014.73
7.3.50.0030.12814.67
7.3.40.0030.13314.57
7.3.30.0030.13214.71
7.3.20.0030.13416.70
7.3.10.0080.12916.62
7.3.00.0050.13116.49
7.2.260.0070.14115.08
7.2.250.0130.13314.87
7.2.240.0070.13014.89
7.2.230.0070.13715.13
7.2.220.0030.13114.84
7.2.210.0030.13015.03
7.2.200.0100.12614.95
7.2.190.0070.13815.11
7.2.180.0000.13414.98
7.2.170.0030.13415.14
7.2.160.0030.13315.02
7.2.150.0070.12917.01
7.2.140.0060.12717.11
7.2.130.0070.13316.79
7.2.120.0070.12916.77
7.2.110.0100.12616.64
7.2.100.0060.13116.80
7.2.90.0070.13016.77
7.2.80.0100.12316.95
7.2.70.0070.12916.71
7.2.60.0070.12916.84
7.2.50.0030.13116.85
7.2.40.0080.12716.97
7.2.30.0080.13716.71
7.2.20.0060.13216.95
7.2.10.0070.13216.89
7.2.00.0050.13016.83
7.1.330.0000.13415.71
7.1.320.0070.13015.55
7.1.310.0070.12615.70
7.1.300.0030.13015.87
7.1.290.0000.13415.74
7.1.280.0070.13315.81
7.1.270.0000.14015.51
7.1.260.0030.12815.96
7.1.250.0070.12815.55
7.1.240.0030.13115.68
7.1.230.0000.13115.86
7.1.220.0100.12415.61
7.1.210.0000.13715.67
7.1.200.0050.13015.84
7.1.190.0070.12515.63
7.1.180.0000.12515.43
7.1.170.0030.13715.88
7.1.160.0070.12215.49
7.1.150.0070.13415.99
7.1.140.0000.14115.65
7.1.130.0100.12515.71
7.1.120.0030.12615.95
7.1.110.0070.12815.95
7.1.100.0070.12715.89
7.1.90.0000.13715.93
7.1.80.0070.13015.91
7.1.70.0030.14616.36
7.1.60.0070.16317.88
7.1.50.0030.14116.39
7.1.40.0070.13415.94
7.1.30.0030.13315.91
7.1.20.0070.12815.77
7.1.10.0070.12715.95
7.1.00.0020.18419.12
7.0.330.0100.12915.33
7.0.320.0030.13215.51
7.0.310.0030.13315.29
7.0.300.0070.13015.59
7.0.290.0070.12615.34
7.0.280.0030.12915.30
7.0.270.0000.13015.20
7.0.260.0070.12915.16
7.0.250.0100.12815.22
7.0.240.0070.12515.22
7.0.230.0000.13415.43
7.0.220.0070.12815.04
7.0.210.0030.12515.34
7.0.200.0070.12516.14
7.0.190.0130.13015.26
7.0.180.0000.13415.62
7.0.170.0030.13515.17
7.0.160.0030.13215.37
7.0.150.0030.12815.45
7.0.140.0050.17918.72
7.0.130.0070.12915.50
7.0.120.0030.13415.31
7.0.110.0070.12915.43
7.0.100.0070.12415.46
7.0.90.0000.13315.37
7.0.80.0030.13215.16
7.0.70.0030.13015.49
7.0.60.0080.17917.75
7.0.50.0070.17116.62
7.0.40.0070.17516.79
7.0.30.0330.15016.87
7.0.20.0170.17116.73
7.0.10.0130.13816.93
7.0.00.0080.16316.78
5.6.400.0000.12914.56
5.6.390.0100.12814.27
5.6.380.0100.12614.31
5.6.370.0000.12614.51
5.6.360.0030.12914.73
5.6.350.0070.12914.33
5.6.340.0030.12314.50
5.6.330.0130.11814.36
5.6.320.0130.12514.25
5.6.310.0070.12814.17
5.6.300.0030.12914.56
5.6.290.0030.13814.44
5.6.280.0070.17917.75
5.6.270.0000.13014.09
5.6.260.0030.12814.45
5.6.250.0030.13414.53
5.6.240.0000.13114.23
5.6.230.0070.12514.39
5.6.220.0100.12314.30
5.6.210.0070.17417.45
5.6.200.0030.15516.30
5.6.190.0050.19717.38
5.6.180.1600.14917.46
5.6.170.0080.15217.33
5.6.160.0020.14817.30
5.6.150.0030.15516.12
5.6.140.0250.15016.22
5.6.130.0070.16716.19
5.6.120.0100.17917.67
5.6.110.0070.16417.71
5.6.100.0100.18217.56
5.6.90.0120.15517.72
5.6.80.0080.18217.32
5.6.70.0070.12314.22
5.6.60.0100.12314.36
5.6.50.0030.12814.07
5.6.40.0000.12614.20
5.6.30.0030.12714.19
5.6.20.0030.12814.16
5.6.10.0030.12914.20
5.6.00.0070.13014.31
5.5.380.0030.13013.98
5.5.370.0030.12814.30
5.5.360.0030.13414.01
5.5.350.0200.16817.26
5.5.340.0080.15816.00
5.5.330.0050.15817.13
5.5.320.0170.16017.24
5.5.310.0180.17217.36
5.5.300.0080.14716.10
5.5.290.0050.14616.12
5.5.280.0080.14317.65
5.5.270.0070.14017.38
5.5.260.0080.18017.63
5.5.250.0080.17817.41
5.5.240.0030.15117.04
5.5.230.0030.13114.19
5.5.220.0070.12714.19
5.5.210.0100.12714.06
5.5.200.0000.13114.10
5.5.190.0100.12314.17
5.5.180.0000.13313.84
5.5.170.0030.13414.04
5.5.160.0030.12913.96
5.5.150.0030.13614.21
5.5.140.0030.12513.96
5.5.130.0000.12814.04
5.5.120.0070.12113.85
5.5.110.0030.13414.12
5.5.100.0000.13214.40
5.5.90.0070.12314.32
5.5.80.0100.12014.30
5.5.70.0070.12014.32
5.5.60.0000.13614.23
5.5.50.0030.12714.19
5.5.40.0030.12514.23
5.5.30.0030.12714.27
5.5.20.0000.13114.25
5.5.10.0100.12013.96
5.5.00.0070.12414.30
5.4.450.0280.03515.02
5.4.440.0080.02815.20
5.4.430.0300.02515.12
5.4.420.0430.03015.25
5.4.410.0290.03415.11
5.4.400.0120.03514.74
5.4.390.0200.03314.79
5.4.380.0170.03114.73
5.4.370.0100.02914.81
5.4.360.0100.02814.64
5.4.350.0040.02211.38
5.4.340.0060.02111.43
5.4.330.0030.00310.86
5.4.320.0020.02111.58
5.4.310.0060.02111.54
5.4.300.0070.01911.58
5.4.290.0050.02011.62
5.4.280.0050.02111.66
5.4.270.0040.02411.54
5.4.260.0070.02511.48
5.4.250.0070.02514.84
5.4.240.0050.02814.86
5.4.230.0000.03714.82
5.4.220.0060.02814.87
5.4.210.0100.02815.00
5.4.200.0080.02514.95
5.4.190.0050.03314.78
5.4.180.0070.02514.79
5.4.170.0030.03014.74
5.4.160.0010.03514.66
5.4.150.0130.03214.95
5.4.140.0030.02813.61
5.4.130.0000.03213.82
5.4.120.0030.03013.55
5.4.110.0090.02713.63
5.4.100.0040.02913.61
5.4.90.0030.02913.58
5.4.80.0080.02813.61
5.4.70.0050.03513.48
5.4.60.0050.02713.63
5.4.50.0050.03013.51
5.4.40.0050.02713.55
5.4.30.0070.02713.39
5.4.20.0080.02813.52
5.4.10.0070.02613.69
5.4.00.0070.02713.44
5.3.290.0080.02111.68
5.3.280.0030.02812.51
5.3.270.0030.03112.58
5.3.260.0070.02812.50
5.3.250.0060.02512.51
5.3.240.0070.03012.51
5.3.230.0070.02612.63
5.3.220.0050.02712.57
5.3.210.0050.03112.57
5.3.200.0040.02712.51
5.3.190.0080.02312.57
5.3.180.0020.03212.64
5.3.170.0050.02712.56
5.3.160.0090.02512.56
5.3.150.0030.04012.49
5.3.140.0020.03212.57
5.3.130.0010.03612.57
5.3.120.0030.03512.40
5.3.110.0070.03812.63
5.3.100.0080.03512.30
5.3.90.0130.02012.22
5.3.80.0050.02712.29
5.3.70.0030.03212.18
5.3.60.0040.03212.25
5.3.50.0070.02512.25
5.3.40.0020.03012.18
5.3.30.0060.02612.18
5.3.20.0030.02912.05
5.3.10.0090.02411.99
5.3.00.0050.03311.95
5.2.170.0030.05011.14
5.2.160.0100.03311.23
5.2.150.0030.04311.29
5.2.140.0030.04011.29
5.2.130.0070.03711.01
5.2.120.0030.04011.12
5.2.110.0130.03310.86
5.2.100.0100.05311.25
5.2.90.0000.04711.20
5.2.80.0030.04711.10
5.2.70.0030.04311.10
5.2.60.0100.03710.93
5.2.50.0100.03710.78
5.2.40.0030.04310.93
5.2.30.0000.04310.89
5.2.20.0030.04010.96
5.2.10.0030.04010.69
5.2.00.0030.04010.80
5.1.60.0100.03010.02
5.1.50.0030.0339.85
5.1.40.0030.03310.04
5.1.30.0070.03310.50
5.1.20.0000.04010.33
5.1.10.0070.03310.11
5.1.00.0000.0409.84
5.0.50.0130.0278.42
5.0.40.0030.0278.29
5.0.30.0000.0578.18
5.0.20.0030.0278.34
5.0.10.0030.0278.16
5.0.00.0100.0478.14
4.4.90.0170.0176.11
4.4.80.0000.0236.11
4.4.70.0000.0306.11
4.4.60.0000.0236.11
4.4.50.0030.0206.11
4.4.40.0000.0376.11
4.4.30.0000.0236.11
4.4.20.0070.0176.11
4.4.10.0000.0236.11
4.4.00.0030.0306.11
4.3.110.0030.0206.11
4.3.100.0000.0206.11
4.3.90.0030.0176.11
4.3.80.0030.0476.11
4.3.70.0000.0236.11
4.3.60.0030.0206.11
4.3.50.0000.0236.11
4.3.40.0000.0336.11
4.3.30.0000.0236.11
4.3.20.0000.0236.11
4.3.10.0000.0206.11
4.3.00.0100.0238.36

preferences:
36.21 ms | 401 KiB | 5 Q