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 . ''; $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.40.0120.00618.84
8.3.30.0070.01019.09
8.3.20.0000.00920.32
8.3.10.0060.00322.13
8.3.00.0050.00522.52
8.2.170.0100.01622.96
8.2.160.0100.01020.43
8.2.150.0000.00924.18
8.2.140.0050.00524.66
8.2.130.0120.01226.16
8.2.120.0100.00019.65
8.2.110.0080.00422.14
8.2.100.0030.00919.46
8.2.90.0100.00019.27
8.2.80.0050.00519.25
8.2.70.0040.00817.61
8.2.60.0030.00717.93
8.2.50.0000.01018.07
8.2.40.0070.00318.22
8.2.30.0000.00918.09
8.2.20.0030.00717.52
8.2.10.0030.00617.76
8.2.00.0030.01019.53
8.1.270.0070.00320.29
8.1.260.0030.00626.35
8.1.250.0030.00628.09
8.1.240.0070.00423.71
8.1.230.0070.00719.15
8.1.220.0090.00017.76
8.1.210.0050.00518.77
8.1.200.0000.01217.23
8.1.190.0030.00717.51
8.1.180.0000.01018.86
8.1.170.0030.00918.46
8.1.160.0000.01022.00
8.1.150.0070.00318.48
8.1.140.0050.00517.38
8.1.130.0000.00917.73
8.1.120.0030.00717.34
8.1.110.0000.01017.27
8.1.100.0030.00717.43
8.1.90.0030.00617.43
8.1.80.0060.00317.29
8.1.70.0040.00417.40
8.1.60.0030.00817.52
8.1.50.0030.00617.47
8.1.40.0000.01017.39
8.1.30.0060.00317.39
8.1.20.0030.00717.50
8.1.10.0000.00917.55
8.1.00.0060.00617.36
8.0.300.0000.00918.77
8.0.290.0070.00317.18
8.0.280.0030.00618.43
8.0.270.0030.00617.25
8.0.260.0060.00316.73
8.0.250.0030.00616.96
8.0.240.0050.00516.96
8.0.230.0030.00716.89
8.0.220.0000.00916.82
8.0.210.0000.01016.76
8.0.200.0000.00816.81
8.0.190.0100.00016.92
8.0.180.0030.00716.84
8.0.170.0030.00616.86
8.0.160.0040.00416.95
8.0.150.0030.00616.82
8.0.140.0050.00516.85
8.0.130.0000.00813.31
8.0.120.0030.00716.80
8.0.110.0000.00916.80
8.0.100.0030.00616.98
8.0.90.0040.00416.90
8.0.80.0040.02216.82
8.0.70.0000.00916.87
8.0.60.0070.00316.84
8.0.50.0000.00916.77
8.0.30.0080.01417.01
8.0.20.0080.01317.40
8.0.10.0000.00916.75
8.0.00.0090.01216.72
7.4.330.0000.00715.08
7.4.320.0040.00416.49
7.4.300.0030.00616.49
7.4.290.0000.00916.64
7.4.280.0100.00016.36
7.4.270.0000.00916.59
7.4.260.0060.00616.47
7.4.250.0000.01016.36
7.4.240.0050.00416.56
7.4.230.0000.00916.48
7.4.220.0040.01916.57
7.4.210.0070.01316.60
7.4.200.0000.01016.49
7.4.190.0000.00916.55
7.4.160.0140.00516.45
7.4.150.0070.01417.40
7.4.140.0060.01617.86
7.4.130.0120.00816.52
7.4.120.0110.01116.58
7.4.110.0170.00716.42
7.4.100.0120.00916.43
7.4.90.0070.01316.47
7.4.80.0190.00419.39
7.4.70.0060.01416.48
7.4.60.0070.01316.39
7.4.50.0060.00616.34
7.4.40.0080.00822.77
7.4.30.0070.01416.41
7.4.00.0120.00615.13
7.3.330.0040.00413.07
7.3.320.0070.00013.00
7.3.310.0060.00316.14
7.3.300.0050.00516.16
7.3.290.0180.00316.29
7.3.280.0070.01316.23
7.3.270.0130.00717.40
7.3.260.0120.00916.37
7.3.250.0110.00816.32
7.3.240.0100.01016.43
7.3.230.0070.01516.59
7.3.210.0060.01516.29
7.3.200.0150.00619.39
7.3.190.0160.01016.29
7.3.180.0090.00916.50
7.3.170.0110.00816.32
7.3.160.0080.00916.35
7.3.120.0070.01314.81
7.3.110.0040.01514.91
7.3.100.0000.01814.93
7.3.90.0030.01715.02
7.3.80.0030.01314.54
7.3.70.0070.01014.61
7.3.60.0070.01114.75
7.3.50.0000.01714.84
7.3.40.0110.00714.71
7.3.30.0030.01014.95
7.3.20.0000.01316.61
7.3.10.0040.00916.55
7.3.00.0050.01116.53
7.2.330.0070.01316.67
7.2.320.0170.01016.49
7.2.310.0140.00716.63
7.2.300.0070.01416.68
7.2.290.0060.01316.51
7.2.240.0030.01215.00
7.2.230.0060.00915.30
7.2.220.0000.01415.05
7.2.210.0060.00914.88
7.2.200.0030.01315.10
7.2.190.0070.00314.79
7.2.180.0090.00915.23
7.2.170.0080.00315.14
7.2.160.0030.01214.98
7.2.150.0000.01416.92
7.2.140.0030.01216.73
7.2.130.0020.01116.97
7.2.120.0090.00516.90
7.2.110.0090.00716.80
7.2.100.0030.00816.92
7.2.90.0030.01016.83
7.2.80.0040.01016.75
7.2.70.0020.00916.75
7.2.60.0060.00716.94
7.2.50.0060.00816.91
7.2.40.0030.00816.83
7.2.30.0110.00516.98
7.2.20.0050.00816.95
7.2.10.0070.00817.02
7.2.00.0080.00817.00
7.1.330.0040.01515.77
7.1.320.0030.01015.70
7.1.310.0030.01015.97
7.1.300.0000.01515.74
7.1.290.0060.01015.48
7.1.280.0060.00915.93
7.1.270.0040.00815.82
7.1.260.0060.01015.59
7.1.250.0030.01015.75
7.1.70.0000.00917.01
7.1.60.0030.01319.69
7.1.50.0060.00616.76
7.1.00.0070.06722.45
7.0.200.0060.00316.95
7.0.140.0000.08022.09
7.0.60.0100.07019.90
7.0.50.0170.07017.81
7.0.40.0070.08320.30
7.0.30.0230.04720.06
7.0.20.0200.05720.20
7.0.10.0270.08020.18
7.0.00.0100.04720.08
5.6.280.0070.07020.92
5.6.210.0070.04720.77
5.6.200.0030.09318.08
5.6.190.0100.07720.34
5.6.180.3900.04020.45
5.6.170.0230.08320.41
5.6.160.0170.07320.37
5.6.150.0100.07718.08
5.6.140.0000.04718.07
5.6.130.0100.03718.16
5.6.120.0100.05321.07
5.6.110.0170.07721.10
5.6.100.0030.04321.13
5.6.90.0170.09020.96
5.6.80.0130.07720.53
5.6.70.0200.08020.39
5.5.350.0200.08320.30
5.5.340.0070.04317.91
5.5.330.0070.04020.14
5.5.320.0270.08320.22
5.5.310.0100.04720.20
5.5.300.0070.05317.98
5.5.290.0030.05718.00
5.5.280.0100.03720.64
5.5.270.0100.08320.78
5.5.260.0030.06720.75
5.5.250.0030.04020.70
5.5.240.0130.04720.13
5.4.450.0770.06319.61
5.4.440.0730.06719.63
5.4.430.0700.08319.31
5.4.420.0670.06319.10
5.4.410.0970.05019.39
5.4.400.1070.06318.83
5.4.390.1230.05718.68
5.4.380.0230.06318.53
5.4.370.0170.05318.46
5.4.360.0130.05318.66
5.4.350.0050.03811.97
5.4.340.0070.05111.96
5.4.320.0080.03612.45
5.4.310.0100.04112.45
5.4.300.0040.04712.45
5.4.290.0030.04212.45
5.4.280.0050.03812.34
5.4.270.0030.04012.35
5.4.260.0050.04412.35
5.4.250.0030.05718.87
5.4.240.0000.06018.95
5.4.230.0070.05719.02
5.4.220.0000.06318.80
5.4.210.0130.07019.02
5.4.200.0030.05718.71
5.4.190.0030.06018.98
5.4.180.0100.05318.90
5.4.170.0100.05318.91
5.4.160.0130.05018.78
5.4.150.0100.05318.75
5.4.140.0130.04716.26
5.4.130.0070.05016.29
5.4.120.0130.06316.29
5.4.110.0030.05716.50
5.4.100.0000.05716.41
5.4.90.0030.05716.34
5.4.80.0070.05316.33
5.4.70.0030.05316.21
5.4.60.0070.05316.43
5.4.50.0130.04316.31
5.4.40.0100.06316.45
5.4.30.0100.05016.41
5.4.20.0100.04716.46
5.4.10.0070.05316.36
5.4.00.0100.04715.87
5.3.290.0080.04912.80
5.3.280.0100.05014.46
5.3.270.0100.05314.52
5.3.260.0030.06714.65
5.3.250.0070.05314.46
5.3.240.0030.05714.70
5.3.230.0070.05314.46
5.3.220.0100.05314.60
5.3.210.0100.05314.73
5.3.200.0130.04714.34
5.3.190.0030.05714.58
5.3.180.0170.04314.61
5.3.170.0070.05314.58
5.3.160.0000.05714.57
5.3.150.0070.05314.58
5.3.140.0200.04014.60
5.3.130.0070.05714.54
5.3.120.0030.05714.43
5.3.110.0100.05314.46
5.3.100.0100.05014.05
5.3.90.0070.06714.06
5.3.80.0030.05313.95
5.3.70.0070.05313.93
5.3.60.0100.04313.95
5.3.50.0130.06714.16
5.3.40.0070.05014.02
5.3.30.0100.04013.82
5.3.20.0100.04313.75
5.3.10.0030.05713.63
5.3.00.0000.05313.70
5.2.170.0170.04310.98
5.2.160.0000.04311.03
5.2.150.0030.04311.14
5.2.140.0030.04011.13
5.2.130.0000.04311.05
5.2.120.0070.04311.05
5.2.110.0070.03711.13
5.2.100.0070.03710.93
5.2.90.0130.04710.96
5.2.80.0170.02710.95
5.2.70.0100.04010.93
5.2.60.0070.04011.06
5.2.50.0070.05311.03
5.2.40.0030.04010.93
5.2.30.0030.04010.91
5.2.20.0070.03710.89
5.2.10.0030.03710.91
5.2.00.0030.04010.79
5.1.60.0170.03310.00
5.1.50.0030.03710.14
5.1.40.0030.03310.10
5.1.30.0100.03010.22
5.1.20.0030.03710.18
5.1.10.0100.03010.02
5.1.00.0070.03310.14
5.0.50.0000.0378.63
5.0.40.0000.0308.57
5.0.30.0100.0408.30
5.0.20.0030.0378.24
5.0.10.0000.0338.29
5.0.00.0030.0408.17
4.4.90.0070.0275.91
4.4.80.0000.0305.84
4.4.70.0070.0175.88
4.4.60.0000.0235.89
4.4.50.0030.0305.96
4.4.40.0070.0305.84
4.4.30.0030.0305.84
4.4.20.0000.0235.84
4.4.10.0000.0236.01
4.4.00.0030.0475.88
4.3.110.0100.0135.84
4.3.100.0030.0205.84
4.3.90.0000.0235.84
4.3.80.0030.0435.84
4.3.70.0070.0175.84
4.3.60.0000.0275.84
4.3.50.0000.0275.84
4.3.40.0000.0375.84
4.3.30.0030.0235.84
4.3.20.0000.0305.84
4.3.10.0030.0205.84
4.3.00.0200.0208.43

preferences:
36.4 ms | 400 KiB | 5 Q