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 . 'E'; $hash1 = crypt($passwd1, $setting . $salt); $hash2 = crypt($passwd2, $setting . $salt); 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)
8.3.40.0060.01318.71
8.3.30.0090.00919.09
8.3.20.0060.00320.34
8.3.10.0040.00722.09
8.3.00.0050.00522.39
8.2.170.0110.00722.96
8.2.160.0070.01120.52
8.2.150.0000.00924.18
8.2.140.0060.00324.66
8.2.130.0060.00326.16
8.2.120.0030.01519.66
8.2.110.0080.00422.20
8.2.100.0100.00317.72
8.2.90.0040.00719.19
8.2.80.0060.00319.21
8.2.70.0030.00717.63
8.2.60.0030.00618.04
8.2.50.0080.00318.07
8.2.40.0030.00618.16
8.2.30.0060.00318.05
8.2.20.0000.00917.66
8.2.10.0030.00717.73
8.2.00.0100.00417.85
8.1.270.0060.00323.99
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0070.00324.02
8.1.230.0030.00919.15
8.1.220.0030.00717.74
8.1.210.0030.00718.77
8.1.200.0040.00717.23
8.1.190.0030.00717.53
8.1.180.0070.00420.16
8.1.170.0070.00318.30
8.1.160.0000.01022.14
8.1.150.0000.00918.57
8.1.140.0000.01017.30
8.1.130.0060.00317.82
8.1.120.0000.00917.29
8.1.110.0030.00617.43
8.1.100.0050.00517.38
8.1.90.0050.00517.42
8.1.80.0000.00917.29
8.1.70.0040.00417.36
8.1.60.0100.00317.57
8.1.50.0000.00917.34
8.1.40.0040.00717.45
8.1.30.0060.00317.56
8.1.20.0030.00717.54
8.1.10.0030.00617.50
8.1.00.0110.00517.51
8.0.300.0030.00718.77
8.0.290.0060.00317.18
8.0.280.0060.00318.43
8.0.270.0000.00917.36
8.0.260.0030.00616.92
8.0.250.0060.00316.99
8.0.240.0000.01016.84
8.0.230.0030.00616.88
8.0.220.0000.00916.89
8.0.210.0050.00516.88
8.0.200.0040.00416.84
8.0.190.0040.00716.92
8.0.180.0030.00616.88
8.0.170.0000.01016.93
8.0.160.0030.00616.72
8.0.150.0060.00316.66
8.0.140.0030.00716.82
8.0.130.0050.00213.28
8.0.120.0000.01016.85
8.0.110.0030.00616.88
8.0.100.0030.00716.91
8.0.90.0060.00316.95
8.0.80.0000.01716.91
8.0.70.0000.00916.86
8.0.60.0000.00916.77
8.0.50.0000.00916.87
8.0.30.0120.01316.98
8.0.20.0110.01117.40
8.0.10.0000.01016.85
8.0.00.0080.01116.59
7.4.330.0000.00715.07
7.4.320.0030.00616.50
7.4.300.0030.00516.60
7.4.290.0030.00616.61
7.4.280.0060.00316.38
7.4.270.0080.00416.42
7.4.260.0080.00316.53
7.4.250.0060.00316.45
7.4.240.0030.00616.42
7.4.230.0030.00616.65
7.4.220.0090.01216.56
7.4.210.0070.01316.56
7.4.200.0000.00916.69
7.4.190.0030.00616.46
7.4.160.0070.01316.60
7.4.150.0030.01817.40
7.4.140.0130.01117.86
7.4.130.0060.01416.67
7.4.120.0090.01116.51
7.4.110.0060.01416.71
7.4.100.0080.01716.41
7.4.90.0170.00316.63
7.4.80.0100.01019.39
7.4.70.0110.00916.48
7.4.60.0050.01316.54
7.4.50.0040.00816.27
7.4.40.0090.00922.77
7.4.30.0090.01316.39
7.4.00.0070.01314.99
7.3.330.0000.00713.11
7.3.320.0030.00313.05
7.3.310.0040.00816.34
7.3.300.0000.00916.23
7.3.290.0110.00616.21
7.3.280.0070.01316.29
7.3.270.0070.01317.40
7.3.260.0130.00716.39
7.3.250.0100.01016.54
7.3.240.0040.01916.27
7.3.230.0150.00716.48
7.3.210.0060.01316.35
7.3.200.0060.01819.39
7.3.190.0110.01116.52
7.3.180.0200.00016.35
7.3.170.0030.01716.32
7.3.160.0100.01016.36
7.3.120.0060.00914.68
7.2.330.0070.01316.63
7.2.320.0070.01316.50
7.2.310.0060.01616.50
7.2.300.0130.00616.50
7.2.290.0100.01016.73
7.2.60.0030.01016.98
7.1.200.0040.00815.70
7.1.70.0040.01217.22
7.1.60.0070.02519.50
7.1.50.0130.00316.72
7.1.00.0070.07722.57
7.0.200.0000.01516.88
7.0.140.0070.07721.95
7.0.80.0070.09019.96
7.0.70.0130.06719.91
7.0.60.0030.09319.96
7.0.50.0030.07020.28
7.0.40.0030.09020.04
7.0.30.0070.08719.95
7.0.20.0070.08320.05
7.0.10.0170.07020.10
7.0.00.0100.08019.95
5.6.280.0000.08020.89
5.6.230.0000.07020.61
5.6.220.0000.09320.58
5.6.210.0100.04320.61
5.6.200.0130.08321.13
5.6.190.0130.08321.07
5.6.180.0100.08321.05
5.6.170.0070.06021.02
5.6.160.0070.08721.10
5.6.150.0170.07321.04
5.6.140.0070.07721.07
5.6.130.0230.07320.95
5.6.120.0070.08720.97
5.6.110.0030.08721.07
5.6.100.0030.06320.95
5.6.90.0030.05720.90
5.6.80.0070.07720.39
5.6.70.0030.09020.32
5.6.60.0070.07320.41
5.6.50.0070.06320.34
5.6.40.0070.04020.28
5.6.30.0030.04320.40
5.6.20.0030.08020.37
5.6.10.0100.07720.48
5.6.00.0100.08720.30
5.5.370.0130.07320.42
5.5.360.0070.07320.41
5.5.350.0200.07020.44
5.5.340.0070.09020.84
5.5.330.0170.07320.86
5.5.320.0100.06320.64
5.5.310.0070.08720.79
5.5.300.0070.08720.76
5.5.290.0100.07320.79
5.5.280.0130.08320.84
5.5.270.0030.08720.90
5.5.260.0100.08720.86
5.5.250.0130.07720.72
5.5.240.0100.05720.21
5.5.230.0070.07720.29
5.5.220.0070.06720.10
5.5.210.0070.06720.14
5.5.200.0100.05020.27
5.5.190.0100.08320.11
5.5.180.0100.07720.12
5.5.160.0100.07320.25
5.5.150.0200.07320.21
5.5.140.0100.07319.98
5.5.130.0170.07020.09
5.5.120.0100.08020.21
5.5.110.0030.08720.13
5.5.100.0030.09020.07
5.5.90.0070.05320.03
5.5.80.0070.08720.15
5.5.70.0070.06720.13
5.5.60.0100.07319.95
5.5.50.0100.08020.14
5.5.40.0100.07720.05
5.5.30.0030.08720.02
5.5.20.0100.07020.14
5.5.10.0030.08019.94
5.5.00.0100.07320.02
5.4.450.0070.07019.14
5.4.440.0100.06319.40
5.4.430.0100.05319.26
5.4.420.0130.07319.44
5.4.410.0030.08719.22
5.4.400.0070.05719.11
5.4.390.0170.07318.96
5.4.380.0130.07318.95
5.4.370.0070.04318.98
5.4.360.0030.08319.23
5.4.350.0070.03718.90
5.4.340.0030.08718.84
5.4.320.0070.06719.09
5.4.310.0070.08018.95
5.4.300.0030.08719.07
5.4.290.0100.07318.99
5.4.280.0100.07319.02
5.4.270.0000.05719.04
5.4.260.0070.05318.89
5.4.250.0130.06719.22
5.4.240.0030.08319.13
5.4.230.0100.05018.84
5.4.220.0030.05719.11
5.4.210.0000.08719.05
5.4.200.0100.07719.15
5.4.190.0100.07018.95
5.4.180.0070.08319.11
5.4.170.0070.07019.06
5.4.160.0170.06719.07
5.4.150.0030.07718.88
5.4.140.0100.07316.12
5.4.130.0070.08016.36
5.4.120.0030.04316.28
5.4.110.0100.07016.30
5.4.100.0000.08716.30
5.4.90.0030.04316.44
5.4.80.0070.07716.20
5.4.70.0130.06716.39
5.4.60.0030.08316.23
5.4.50.0130.05016.33
5.4.40.0130.07016.24
5.4.30.0070.05316.23
5.4.20.0170.06716.20
5.4.10.0070.07016.14
5.4.00.0030.04715.73
5.3.290.0030.07714.64
5.3.280.0070.08314.43
5.3.270.0130.04714.57
5.3.260.0100.07714.60
5.3.250.0030.07014.54
5.3.240.0130.06314.57
5.3.230.0130.04714.55
5.3.220.0070.08014.55
5.3.210.0070.08014.50
5.3.200.0070.06014.42
5.3.190.0000.09014.54
5.3.180.0070.07314.52
5.3.170.0000.06714.42
5.3.160.0130.06714.55
5.3.150.0030.05714.55
5.3.140.0070.08014.54
5.3.130.0070.06714.55
5.3.120.0030.06714.38
5.3.110.0000.08014.53
5.3.100.0030.06714.02
5.3.90.0130.07013.93
5.3.80.0070.04013.86
5.3.70.0000.07013.97
5.3.60.0100.04013.97
5.3.50.0070.04013.98
5.3.40.0100.07013.98
5.3.30.0030.07013.93
5.3.20.0070.05713.71
5.3.10.0030.07313.66
5.3.00.0270.04713.71
5.2.170.0130.05311.89
5.2.160.0070.06011.89
5.2.150.0030.05711.89
5.2.140.0000.06011.89
5.2.130.0100.06011.89
5.2.120.0100.05011.89
5.2.110.0030.04711.89
5.2.100.0000.06311.89
5.2.90.0070.06011.89
5.2.80.0100.05311.89
5.2.70.0100.05011.89
5.2.60.0070.05011.89
5.2.50.0000.05011.89
5.2.40.0030.06311.89
5.2.30.0070.06711.89
5.2.20.0000.05011.89
5.2.10.0000.03011.89
5.2.00.0070.05011.89
5.1.60.0030.02311.89
5.1.50.0000.03711.89
5.1.40.0000.03311.89
5.1.30.0070.03011.89
5.1.20.0100.02311.89
5.1.10.0030.04011.89
5.1.00.0030.03711.89
5.0.50.0000.02311.89
5.0.40.0000.02011.89
5.0.30.0070.02311.89
5.0.20.0000.02011.89
5.0.10.0000.02311.89
5.0.00.0000.03311.89
4.4.90.0000.03011.89
4.4.80.0030.03011.89
4.4.70.0030.01711.89
4.4.60.0000.01711.89
4.4.50.0030.01311.89
4.4.40.0000.02711.89
4.4.30.0000.01711.89
4.4.20.0030.01311.89
4.4.10.0000.02311.89
4.4.00.0000.02711.89
4.3.110.0030.01311.89
4.3.100.0000.01711.89
4.3.90.0000.01711.89
4.3.80.0000.02711.89
4.3.70.0030.01711.89
4.3.60.0000.01711.89
4.3.50.0030.01711.89
4.3.40.0000.02311.89
4.3.30.0000.01711.89
4.3.20.0000.01711.89
4.3.10.0030.01311.89
4.3.00.0000.01711.89

preferences:
42.91 ms | 400 KiB | 5 Q