3v4l.org

run code in 300+ PHP versions simultaneously
<?php $setting = '$2y$04$'; $salt = '12345678901234589012'; // SAME SALT FOR ALL PASSWORDS, OMG, DON'T $str = '123456789012345678901234567890123456789012345678901234567890123456789012'; $passwd1 = $str . 'A'; $passwd2 = $str . 'B'; $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.60.0140.00718.30
8.3.50.0120.00917.33
8.3.40.0120.00318.66
8.3.30.0110.00418.70
8.3.20.0040.00418.74
8.3.10.0000.00820.46
8.3.00.0030.00617.63
8.2.180.0150.00716.32
8.2.170.0040.01122.96
8.2.160.0070.01122.11
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0120.00319.84
8.2.110.0060.00320.89
8.2.100.0040.00817.72
8.2.90.0000.01020.78
8.2.80.0040.00417.93
8.2.70.0050.00517.63
8.2.60.0040.00417.89
8.2.50.0000.00918.07
8.2.40.0030.00618.16
8.2.30.0000.01018.09
8.2.20.0060.00317.71
8.2.10.0030.00517.72
8.2.00.0040.00417.63
8.1.280.0070.00725.92
8.1.270.0030.00623.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0070.00420.68
8.1.230.0060.00620.82
8.1.220.0000.00817.78
8.1.210.0000.00819.02
8.1.200.0100.00017.35
8.1.190.0080.00017.51
8.1.180.0030.00518.10
8.1.170.0040.00418.91
8.1.160.0000.00818.69
8.1.150.0000.00818.63
8.1.140.0040.00417.39
8.1.130.0000.00817.82
8.1.120.0040.00417.46
8.1.110.0000.00817.34
8.1.100.0070.00017.42
8.1.90.0000.00717.46
8.1.80.0000.00817.32
8.1.70.0080.00017.36
8.1.60.0000.00817.42
8.1.50.0000.01017.41
8.1.40.0050.00317.32
8.1.30.0030.00617.57
8.1.20.0040.00417.42
8.1.10.0040.00417.41
8.1.00.0000.00917.37
8.0.300.0070.00019.85
8.0.290.0000.00716.75
8.0.280.0030.00318.50
8.0.270.0050.00217.24
8.0.260.0070.00018.55
8.0.250.0000.00716.92
8.0.240.0090.00316.80
8.0.230.0070.00016.96
8.0.220.0000.00716.77
8.0.210.0050.00316.87
8.0.200.0000.00816.83
8.0.190.0000.00716.96
8.0.180.0000.00716.83
8.0.170.0000.00916.80
8.0.160.0030.00517.00
8.0.150.0040.00416.84
8.0.140.0040.00816.86
8.0.130.0030.00313.40
8.0.120.0000.00716.89
8.0.110.0040.00416.79
8.0.100.0040.00416.75
8.0.90.0040.00416.93
8.0.80.0090.01316.91
8.0.70.0000.00716.84
8.0.60.0040.00416.95
8.0.50.0030.00616.95
8.0.30.0090.01116.92
8.0.20.0110.00817.40
8.0.10.0040.00417.01
8.0.00.0110.00616.56
7.4.330.0000.00614.66
7.4.320.0000.00716.59
7.4.300.0040.00416.55
7.4.290.0030.00316.58
7.4.280.0040.00416.50
7.4.270.0000.00716.49
7.4.260.0060.00013.21
7.4.250.0060.00316.41
7.4.240.0080.00016.60
7.4.230.0030.00316.40
7.4.220.0100.01016.43
7.4.210.0080.00916.61
7.4.200.0050.00216.43
7.4.190.0000.00716.59
7.4.160.0110.00516.30
7.4.150.0120.00617.40
7.4.140.0160.00517.22
7.4.130.0130.00816.69
7.4.120.0070.01116.50
7.4.110.0060.01116.38
7.4.100.0090.00916.44
7.4.90.0090.01516.47
7.4.80.0090.00918.80
7.4.70.0070.01016.57
7.4.60.0100.00716.53
7.4.50.0080.00016.57
7.4.40.0110.00422.27
7.4.30.0060.01016.29
7.4.10.0080.00914.93
7.4.00.0050.01314.87
7.3.330.0030.00313.18
7.3.320.0050.00013.17
7.3.310.0030.00316.27
7.3.300.0030.00316.18
7.3.290.0090.00616.22
7.3.280.0110.00416.29
7.3.270.0120.00617.40
7.3.260.0110.00718.24
7.3.250.0090.00816.46
7.3.240.0130.00316.21
7.3.230.0120.01216.45
7.3.210.0110.00616.51
7.3.200.0060.01819.39
7.3.190.0130.00916.41
7.3.180.0140.00316.52
7.3.170.0060.01516.30
7.3.160.0060.00916.56
7.3.130.0050.01314.77
7.3.120.0050.00914.88
7.3.110.0050.01314.87
7.3.100.0030.01014.78
7.3.90.0060.00914.62
7.3.80.0050.01114.67
7.3.70.0050.00714.78
7.3.60.0050.00914.75
7.3.50.0020.01214.68
7.3.40.0120.00314.90
7.3.30.0050.00914.79
7.3.20.0030.01016.50
7.3.10.0070.00716.63
7.3.00.0020.01016.67
7.2.330.0030.01416.71
7.2.320.0000.01916.75
7.2.310.0140.00716.66
7.2.300.0090.01016.66
7.2.290.0140.00316.53
7.2.260.0060.01215.06
7.2.250.0100.00714.81
7.2.240.0040.01214.91
7.2.230.0070.00715.03
7.2.220.0060.00614.93
7.2.210.0050.00814.99
7.2.200.0020.01115.05
7.2.190.0050.00914.94
7.2.180.0020.01314.99
7.2.170.0050.01214.94
7.2.160.0050.00815.03
7.2.150.0090.00617.12
7.2.140.0050.00816.85
7.2.130.0050.00716.68
7.2.120.0050.00616.93
7.2.110.0050.00716.77
7.2.100.0030.00816.85
7.2.90.0070.00716.97
7.2.80.0070.00716.84
7.2.70.0050.01017.05
7.2.60.0040.01116.87
7.2.50.0060.00817.01
7.2.40.0060.00616.81
7.2.30.0090.00517.04
7.2.20.0050.00917.09
7.2.10.0100.00516.91
7.2.00.0060.00817.81
7.1.330.0050.01115.75
7.1.320.0070.00415.80
7.1.310.0080.00715.82
7.1.300.0050.00715.80
7.1.290.0110.00315.85
7.1.280.0050.00715.84
7.1.270.0060.00715.74
7.1.260.0060.00815.88
7.1.250.0070.00515.71
7.1.240.0080.00515.88
7.1.230.0020.00715.91
7.1.220.0080.00515.79
7.1.210.0070.00515.67
7.1.200.0070.00415.79
7.1.190.0020.01215.65
7.1.180.0040.00615.85
7.1.170.0050.00715.86
7.1.160.0030.00615.66
7.1.150.0110.00315.91
7.1.140.0020.01115.81
7.1.130.0020.01015.87
7.1.120.0040.01015.79
7.1.110.0070.00715.54
7.1.100.0060.00516.50
7.1.90.0080.00315.78
7.1.80.0080.00715.74
7.1.70.0060.00816.27
7.1.60.0080.01016.89
7.1.50.0070.00816.02
7.1.40.0050.00615.79
7.1.30.0080.00815.82
7.1.20.0070.00915.84
7.1.10.0040.00915.83
7.1.00.0020.03018.04
7.0.330.0050.00815.16
7.0.320.0050.00915.22
7.0.310.0080.00715.17
7.0.300.0020.01015.47
7.0.290.0000.01315.35
7.0.280.0020.01315.33
7.0.270.0060.00615.24
7.0.260.0020.01215.39
7.0.250.0050.00715.26
7.0.240.0050.01115.30
7.0.230.0070.00615.45
7.0.220.0050.00915.47
7.0.210.0100.00315.27
7.0.200.0030.00815.12
7.0.190.0050.00815.48
7.0.180.0050.00815.38
7.0.170.0050.01015.55
7.0.160.0090.00515.43
7.0.150.0020.00615.27
7.0.140.0070.02617.61
7.0.130.0000.01015.17
7.0.120.0050.00715.52
7.0.110.0050.00815.35
7.0.100.0080.00715.47
7.0.90.0050.00815.43
7.0.80.0100.00215.27
7.0.70.0040.01315.58
7.0.60.0110.02916.87
7.0.50.0080.03416.23
7.0.40.0100.02514.82
7.0.30.0070.03214.92
7.0.20.0080.02614.81
7.0.10.0050.02514.92
7.0.00.0060.03214.84
5.6.400.0010.01214.38
5.6.390.0060.00614.49
5.6.380.0070.00914.29
5.6.370.0030.01114.38
5.6.360.0040.01114.40
5.6.350.0050.01214.25
5.6.340.0010.00814.40
5.6.330.0020.01414.19
5.6.320.0080.00314.20
5.6.310.0070.00914.32
5.6.300.0040.00914.59
5.6.290.0060.00614.38
5.6.280.0040.03016.49
5.6.270.0050.01114.26
5.6.260.0080.00814.32
5.6.250.0070.00614.32
5.6.240.0050.00914.39
5.6.230.0030.00914.39
5.6.220.0050.01014.27
5.6.210.0050.03116.43
5.6.200.0020.03715.62
5.6.190.0050.02015.62
5.6.180.0060.01815.57
5.6.170.0070.03315.71
5.6.160.0080.03015.64
5.6.150.0040.02415.54
5.6.140.0080.02015.64
5.6.130.0050.02115.60
5.6.120.0040.02215.57
5.6.110.0070.02115.54
5.6.100.0070.02115.65
5.6.90.0040.02415.63
5.6.80.0090.03015.29
5.6.70.0040.02615.43
5.6.60.0110.02815.32
5.6.50.0060.02515.43
5.6.40.0060.02915.41
5.6.30.0050.03315.32
5.6.20.0060.03215.39
5.6.10.0030.03115.35
5.6.00.0090.02815.42
5.5.380.0060.00614.20
5.5.370.0040.00714.36
5.5.360.0030.01014.22
5.5.350.1050.02216.32
5.5.340.0120.02815.54
5.5.330.0030.03515.60
5.5.320.0070.03115.46
5.5.310.0070.02215.53
5.5.300.0090.02915.69
5.5.290.0070.03115.44
5.5.280.0010.02715.46
5.5.270.0050.02015.44
5.5.260.0020.02415.63
5.5.250.0050.01915.35
5.5.240.0090.02915.21
5.5.230.0070.03115.28
5.5.220.0060.02215.28
5.5.210.0060.02215.31
5.5.200.0080.02715.21
5.5.190.0080.02915.28
5.5.180.0030.03115.21
5.5.170.0070.00514.03
5.5.160.0050.01815.26
5.5.150.0050.03315.35
5.5.140.0090.02115.11
5.5.130.0040.02615.31
5.5.120.0050.03115.30
5.5.110.0030.03315.18
5.5.100.0060.02015.11
5.5.90.0010.02615.22
5.5.80.0080.01415.05
5.5.70.0060.03215.20
5.5.60.0020.02615.22
5.5.50.0070.01915.23
5.5.40.0040.02715.13
5.5.30.0050.02615.23
5.5.20.0060.03215.34
5.5.10.0060.03015.10
5.5.00.0070.02215.08
5.4.450.0030.01914.50
5.4.440.0080.03314.39
5.4.430.0070.03314.50
5.4.420.0010.02514.36
5.4.410.0050.02214.46
5.4.400.0060.03114.23
5.4.390.0080.03114.30
5.4.380.0060.02714.34
5.4.370.0040.03314.35
5.4.360.0020.02814.31
5.4.350.0080.03114.33
5.4.340.0020.02014.25
5.4.330.0050.00912.08
5.4.320.0090.02814.21
5.4.310.0030.01814.27
5.4.300.0050.03414.26
5.4.290.0070.02414.27
5.4.280.0030.03414.27
5.4.270.0080.01914.32
5.4.260.0040.02514.29
5.4.250.0040.01814.28
5.4.240.0040.02014.28
5.4.230.0030.03514.18
5.4.220.0060.02214.28
5.4.210.0030.03114.35
5.4.200.0060.03314.21
5.4.190.0020.03414.21
5.4.180.0090.03014.27
5.4.170.0060.02114.25
5.4.160.0050.02814.28
5.4.150.0060.03314.21
5.4.140.0050.02213.51
5.4.130.0070.02713.35
5.4.120.0060.02813.40
5.4.110.0050.03013.37
5.4.100.0100.02913.35
5.4.90.0080.02513.48
5.4.80.0050.03213.38
5.4.70.0040.02313.45
5.4.60.0040.02613.52
5.4.50.0030.03113.40
5.4.40.0010.02113.45
5.4.30.0030.02013.40
5.4.20.0030.03113.26
5.4.10.0040.02413.42
5.4.00.0090.02913.06
5.3.290.0060.02112.71
5.3.280.0020.03512.65
5.3.270.0050.02312.69
5.3.260.0050.02412.58
5.3.250.0060.03312.60
5.3.240.0060.01812.55
5.3.230.0050.01812.66
5.3.220.0090.03012.59
5.3.210.0040.03312.55
5.3.200.0060.03112.60
5.3.190.0030.03112.58
5.3.180.0030.03612.63
5.3.170.0080.02612.58
5.3.160.0040.03212.59
5.3.150.0030.02312.62
5.3.140.0070.01912.65
5.3.130.0030.02112.60
5.3.120.0050.03012.66
5.3.110.0060.02912.60
5.3.100.0070.03112.42
5.3.90.0070.02312.40
5.3.80.0030.03312.41
5.3.70.0080.02112.41
5.3.60.0050.02412.47
5.3.50.0050.02512.43
5.3.40.0050.01612.41
5.3.30.0020.03212.46
5.3.20.0070.01312.37
5.3.10.0020.02012.28
5.3.00.0050.02812.22
5.2.170.0000.04711.05
5.2.160.0030.02711.03
5.2.150.0070.03311.09
5.2.140.0030.03010.96
5.2.130.0070.05711.00
5.2.120.0030.05710.93
5.2.110.0030.05711.04
5.2.100.0100.05310.97
5.2.90.0030.06311.02
5.2.80.0100.05710.76
5.2.70.0030.05311.01
5.2.60.0030.05010.95
5.2.50.0000.06710.94
5.2.40.0100.03310.90
5.2.30.0000.07010.84
5.2.20.0070.05010.93
5.2.10.0070.02710.81
5.2.00.0030.02710.66
5.1.60.0000.05010.07
5.1.50.0100.0339.98
5.1.40.0030.04710.00
5.1.30.0000.04310.30
5.1.20.0030.04310.32
5.1.10.0100.04310.05
5.1.00.0100.02710.04
5.0.50.0070.0308.61
5.0.40.0000.0308.38
5.0.30.0000.0608.18
5.0.20.0070.0338.17
5.0.10.0030.0408.18
5.0.00.0030.0637.98
4.4.90.0030.0337.88
4.4.80.0030.0377.88
4.4.70.0000.0407.88
4.4.60.0030.0337.88
4.4.50.0000.0237.88
4.4.40.0070.0307.88
4.4.30.0030.0377.88
4.4.20.0030.0237.88
4.4.10.0070.0237.88
4.4.00.0100.0477.88
4.3.110.0070.0337.88
4.3.100.0070.0207.88
4.3.90.0030.0277.88
4.3.80.0000.0577.88
4.3.70.0000.0207.88
4.3.60.0070.0307.88
4.3.50.0000.0337.88
4.3.40.0000.0477.88
4.3.30.0030.0207.88
4.3.20.0030.0207.88
4.3.10.0000.0277.88
4.3.00.0030.0177.88

preferences:
43.8 ms | 401 KiB | 5 Q