3v4l.org

run code in 300+ PHP versions simultaneously
<?php $setting = '$2y$04$'; $salt = '1234567890123456789012'; // SAME SALT FOR ALL PASSWORDS, OMG, DON'T $str = '12345678901234567890123456789012345678901234567890123456789012345678901'; $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.0040.01418.30
8.3.50.0100.01221.08
8.3.40.0040.01518.84
8.3.30.0070.01018.95
8.3.20.0050.00520.34
8.3.10.0030.00621.96
8.3.00.0030.00622.39
8.2.180.0130.00716.50
8.2.170.0120.01222.96
8.2.160.0130.00620.23
8.2.150.0040.00724.18
8.2.140.0030.00724.66
8.2.130.0070.01126.16
8.2.120.0030.00719.83
8.2.110.0070.00322.08
8.2.100.0070.00717.66
8.2.90.0030.00619.22
8.2.80.0000.01019.21
8.2.70.0000.01017.63
8.2.60.0030.00718.03
8.2.50.0000.01018.07
8.2.40.0060.00318.16
8.2.30.0060.00317.98
8.2.20.0000.01017.64
8.2.10.0000.01017.62
8.2.00.0100.00417.74
8.1.280.0130.01325.92
8.1.270.0030.00620.41
8.1.260.0050.00526.35
8.1.250.0030.00628.09
8.1.240.0130.00323.91
8.1.230.0070.00719.04
8.1.220.0030.00717.74
8.1.210.0030.00618.77
8.1.200.0060.00617.35
8.1.190.0030.00717.50
8.1.180.0030.00620.07
8.1.170.0030.00818.52
8.1.160.0000.00922.13
8.1.150.0040.00918.49
8.1.140.0000.01017.37
8.1.130.0000.00917.82
8.1.120.0060.00317.39
8.1.110.0030.00617.27
8.1.100.0000.01017.39
8.1.90.0030.00617.39
8.1.80.0000.00917.44
8.1.70.0060.00317.32
8.1.60.0090.00617.42
8.1.50.0000.01017.45
8.1.40.0000.01017.29
8.1.30.0030.00717.47
8.1.20.0050.00517.53
8.1.10.0070.00317.39
8.1.00.0070.00717.28
8.0.300.0060.00318.77
8.0.290.0040.00417.16
8.0.280.0000.00918.46
8.0.270.0000.00917.25
8.0.260.0030.00616.73
8.0.250.0030.00616.85
8.0.240.0100.00016.94
8.0.230.0000.00916.97
8.0.220.0030.00616.88
8.0.210.0000.00916.93
8.0.200.0070.00316.99
8.0.190.0030.00716.82
8.0.180.0030.00716.82
8.0.170.0100.00016.93
8.0.160.0050.00516.86
8.0.150.0060.00316.83
8.0.140.0030.00616.86
8.0.130.0000.00713.28
8.0.120.0030.00816.84
8.0.110.0000.00916.73
8.0.100.0000.01016.85
8.0.90.0050.00516.83
8.0.80.0040.01616.90
8.0.70.0030.00616.79
8.0.60.0000.01016.88
8.0.50.0000.00916.84
8.0.30.0140.01417.00
8.0.20.0090.01417.40
8.0.10.0030.00616.92
8.0.00.0100.01016.60
7.4.330.0000.00715.08
7.4.320.0000.01016.41
7.4.300.0000.00816.36
7.4.290.0030.00616.65
7.4.280.0040.00416.64
7.4.270.0000.01016.64
7.4.260.0060.00616.58
7.4.250.0060.00616.45
7.4.240.0030.00616.54
7.4.230.0060.00316.70
7.4.220.0180.00916.48
7.4.210.0110.01016.61
7.4.200.0030.00616.50
7.4.190.0030.00616.46
7.4.160.0130.00616.35
7.4.150.0080.01217.40
7.4.140.0130.01317.86
7.4.130.0050.01516.55
7.4.120.0070.01316.40
7.4.110.0070.02116.45
7.4.100.0140.01016.52
7.4.90.0040.01616.48
7.4.80.0100.01019.39
7.4.70.0060.01316.43
7.4.60.0060.01516.49
7.4.50.0040.00716.41
7.4.40.0000.02022.77
7.4.30.0160.00616.49
7.4.00.0060.01315.15
7.3.330.0070.00013.20
7.3.320.0030.00313.16
7.3.310.0070.00316.35
7.3.300.0030.00616.26
7.3.290.0160.00616.25
7.3.280.0100.01116.29
7.3.270.0100.01017.40
7.3.260.0150.00916.32
7.3.250.0050.01516.44
7.3.240.0090.01216.36
7.3.230.0100.01316.39
7.3.210.0100.01016.65
7.3.200.0130.00719.39
7.3.190.0170.01016.34
7.3.180.0120.00616.31
7.3.170.0070.01116.45
7.3.160.0130.01016.53
7.3.120.0030.01714.51
7.2.330.0210.00016.70
7.2.320.0130.01316.65
7.2.310.0090.01216.72
7.2.300.0150.01116.45
7.2.290.0100.01016.76
7.2.60.0080.00416.97
7.1.200.0080.00815.77
7.1.70.0030.01717.38
7.1.60.0030.01719.50
7.1.50.0000.01416.97
7.1.00.0070.07722.44
7.0.200.0030.00616.94
7.0.140.0000.08022.13
7.0.100.0300.03020.05
7.0.90.0170.06720.02
7.0.80.0200.04719.93
7.0.70.0130.06719.96
7.0.60.0200.07319.98
7.0.50.0200.08020.29
7.0.40.0030.08320.10
7.0.30.0100.07020.04
7.0.20.0030.03720.19
7.0.10.0070.06020.12
7.0.00.0070.08020.13
5.6.280.0070.07720.77
5.6.250.0030.03720.69
5.6.240.0070.03320.66
5.6.230.0000.05320.61
5.6.220.0130.08720.57
5.6.210.0000.05720.64
5.6.200.0070.07321.10
5.6.190.0070.07721.04
5.6.180.0070.07721.08
5.6.170.0070.04321.09
5.6.160.0100.06321.04
5.6.150.0100.08720.94
5.6.140.0170.07320.94
5.6.130.0070.09021.17
5.6.120.0100.08721.05
5.6.110.0030.07721.08
5.6.100.0230.07721.07
5.6.90.0100.04720.93
5.6.80.0070.04020.38
5.6.70.0070.05720.50
5.6.60.0100.08020.38
5.6.50.0030.08720.43
5.6.40.0070.08020.42
5.6.30.0200.07020.45
5.6.20.0030.08720.32
5.6.10.0070.08720.30
5.6.00.0030.04720.36
5.5.380.0030.04320.37
5.5.370.0030.08320.35
5.5.360.0030.08020.38
5.5.350.0100.07320.39
5.5.340.0200.07720.73
5.5.330.0100.08020.85
5.5.320.0030.05020.73
5.5.310.0170.06020.90
5.5.300.0100.08020.86
5.5.290.0000.08720.76
5.5.280.0100.05020.88
5.5.270.0070.07720.78
5.5.260.0100.07720.74
5.5.250.0100.07720.64
5.5.240.0170.06320.15
5.5.230.0070.07720.10
5.5.220.0000.08720.01
5.5.210.0100.05320.20
5.5.200.0100.07320.22
5.5.190.0100.08020.23
5.5.180.0100.07320.23
5.5.160.0030.08319.98
5.5.150.0070.04720.17
5.5.140.0130.07320.21
5.5.130.0130.03320.12
5.5.120.0000.05020.11
5.5.110.0030.05020.23
5.5.100.0030.05020.09
5.5.90.0030.05720.14
5.5.80.0070.07320.12
5.5.70.0030.05320.14
5.5.60.0100.07720.15
5.5.50.0070.04720.04
5.5.40.0070.04720.05
5.5.30.0100.08320.14
5.5.20.0030.05320.07
5.5.10.0070.07320.12
5.5.00.0100.07020.09
5.4.450.0070.08719.27
5.4.440.0000.08319.35
5.4.430.0170.03719.36
5.4.420.0000.08719.35
5.4.410.0030.04019.27
5.4.400.0030.05018.98
5.4.390.0030.05718.96
5.4.380.0030.07318.98
5.4.370.0170.03718.92
5.4.360.0100.07719.18
5.4.350.0130.06719.05
5.4.340.0070.05319.04
5.4.320.0200.06719.25
5.4.310.0030.07718.90
5.4.300.0100.07319.08
5.4.290.0070.06318.81
5.4.280.0000.04719.00
5.4.270.0030.07719.09
5.4.260.0070.07318.97
5.4.250.0100.06719.11
5.4.240.0000.06019.05
5.4.230.0100.07319.13
5.4.220.0030.08019.01
5.4.210.0100.07318.87
5.4.200.0070.05319.14
5.4.190.0100.07719.21
5.4.180.0070.04718.95
5.4.170.0100.04719.19
5.4.160.0200.06019.00
5.4.150.0030.05019.02
5.4.140.0070.07316.07
5.4.130.0070.04316.26
5.4.120.0170.06716.36
5.4.110.0100.07316.40
5.4.100.0070.08016.26
5.4.90.0100.08016.36
5.4.80.0070.06716.42
5.4.70.0130.07016.20
5.4.60.0070.07716.41
5.4.50.0000.06716.42
5.4.40.0100.05016.33
5.4.30.0100.03716.23
5.4.20.0100.07716.20
5.4.10.0100.04016.38
5.4.00.0100.07015.77
5.3.290.0070.05714.66
5.3.280.0070.07714.50
5.3.270.0000.07714.55
5.3.260.0130.07714.58
5.3.250.0070.07014.42
5.3.240.0100.04014.46
5.3.230.0000.08314.60
5.3.220.0130.07314.47
5.3.210.0070.07714.52
5.3.200.0100.07714.40
5.3.190.0070.08014.57
5.3.180.0130.07314.38
5.3.170.0030.08314.43
5.3.160.0100.05314.52
5.3.150.0000.05714.42
5.3.140.0100.08314.52
5.3.130.0000.08314.53
5.3.120.0070.04714.53
5.3.110.0070.06714.38
5.3.100.0030.08313.89
5.3.90.0100.05713.87
5.3.80.0070.07313.87
5.3.70.0030.06313.94
5.3.60.0100.03313.97
5.3.50.0000.07713.96
5.3.40.0130.07014.01
5.3.30.0070.04313.82
5.3.20.0000.07713.74
5.3.10.0030.07713.70
5.3.00.0030.08313.70
5.2.170.0070.06311.08
5.2.160.0070.03011.02
5.2.150.0030.03710.92
5.2.140.0000.04010.96
5.2.130.0070.03010.98
5.2.120.0070.02710.89
5.2.110.0030.03311.04
5.2.100.0100.03711.02
5.2.90.0030.02711.08
5.2.80.0070.05310.97
5.2.70.0030.06011.02
5.2.60.0170.05010.99
5.2.50.0070.06010.97
5.2.40.0070.02710.91
5.2.30.0070.05010.84
5.2.20.0070.05310.82
5.2.10.0100.05310.91
5.2.00.0130.05310.62
5.1.60.0030.0509.87
5.1.50.0030.0539.95
5.1.40.0070.0279.94
5.1.30.0000.06010.32
5.1.20.0100.02710.42
5.1.10.0030.05310.03
5.1.00.0030.04710.13
5.0.50.0070.0408.58
5.0.40.0030.0438.39
5.0.30.0070.0578.15
5.0.20.0030.0208.03
5.0.10.0030.0278.22
5.0.00.0070.0638.22
4.4.90.0000.0177.94
4.4.80.0000.0307.94
4.4.70.0030.0337.94
4.4.60.0030.0307.94
4.4.50.0070.0237.94
4.4.40.0030.0407.94
4.4.30.0000.0207.94
4.4.20.0030.0177.94
4.4.10.0030.0337.94
4.4.00.0070.0507.94
4.3.110.0030.0337.94
4.3.100.0100.0237.94
4.3.90.0030.0237.94
4.3.80.0030.0477.94
4.3.70.0030.0237.94
4.3.60.0000.0177.94
4.3.50.0000.0377.94
4.3.40.0070.0477.94
4.3.30.0030.0207.94
4.3.20.0000.0377.94
4.3.10.0030.0307.94
4.3.00.0000.0337.94

preferences:
39.06 ms | 401 KiB | 5 Q