3v4l.org

run code in 300+ PHP versions simultaneously
<?php $setting = '$2y$04$'; $salt = '1234567890123456789012'; // SAME SALT FOR ALL PASSWORDS, OMG, DON'T $passwd1 = str_repeat('a', 256); $passwd2 = ''; $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.0170.01018.67
8.3.30.0070.01018.98
8.3.20.0000.00920.16
8.3.10.0030.00622.05
8.3.00.0000.00922.44
8.2.170.0000.01822.96
8.2.160.0030.01320.38
8.2.150.0030.00624.18
8.2.140.0030.01324.66
8.2.130.0070.01726.16
8.2.120.0070.00319.66
8.2.110.0090.00322.09
8.2.100.0120.00319.21
8.2.90.0030.00718.98
8.2.80.0000.01017.97
8.2.70.0000.01017.50
8.2.60.0000.01018.04
8.2.50.0000.01118.07
8.2.40.0000.01118.22
8.2.30.0040.00718.05
8.2.20.0030.00617.59
8.2.10.0060.00317.69
8.2.00.0040.01117.82
8.1.270.0060.00320.35
8.1.260.0000.01026.35
8.1.250.0030.00628.09
8.1.240.0040.00723.96
8.1.230.0060.00619.00
8.1.220.0030.00617.74
8.1.210.0030.00718.77
8.1.200.0000.01217.22
8.1.190.0030.00617.53
8.1.180.0030.00718.57
8.1.170.0030.00718.50
8.1.160.0030.00722.18
8.1.150.0050.00518.55
8.1.140.0000.01017.39
8.1.130.0000.00917.73
8.1.120.0030.00717.45
8.1.110.0030.00617.38
8.1.100.0070.00317.42
8.1.90.0070.00317.43
8.1.80.0070.00317.29
8.1.70.0030.00617.33
8.1.60.0000.01017.51
8.1.50.0000.00917.36
8.1.40.0030.00617.39
8.1.30.0030.00717.54
8.1.20.0030.00717.60
8.1.10.0030.00717.40
8.1.00.0000.01117.48
8.0.300.0000.00918.77
8.0.290.0000.00917.04
8.0.280.0030.00618.35
8.0.270.0040.00417.25
8.0.260.0000.00816.82
8.0.250.0040.00416.89
8.0.240.0000.01016.89
8.0.230.0030.00616.82
8.0.220.0030.00616.93
8.0.210.0030.00616.87
8.0.200.0030.00616.93
8.0.190.0000.01316.97
8.0.180.0030.00716.86
8.0.170.0090.00016.81
8.0.160.0040.00416.81
8.0.150.0030.00616.76
8.0.140.0050.00616.83
8.0.130.0020.00513.40
8.0.120.0000.01016.75
8.0.110.0060.00416.82
8.0.100.0060.00316.77
8.0.90.0090.00016.92
8.0.80.0080.01116.91
8.0.70.0060.00316.76
8.0.60.0030.00616.95
8.0.50.0060.00316.83
8.0.30.0050.01717.15
8.0.20.0080.01417.40
8.0.10.0030.00716.80
8.0.00.0060.01516.57
7.4.330.0000.00815.00
7.4.320.0030.00616.59
7.4.300.0090.00016.58
7.4.290.0030.00616.39
7.4.280.0060.00316.50
7.4.270.0000.00916.42
7.4.260.0000.00916.42
7.4.250.0040.00416.60
7.4.240.0030.00616.52
7.4.230.0060.00316.49
7.4.220.0140.00716.71
7.4.210.0060.01116.49
7.4.200.0030.00716.54
7.4.190.0030.00616.73
7.4.160.0150.00916.56
7.4.150.0080.01217.40
7.4.140.0130.01017.86
7.4.130.0080.01216.48
7.4.120.0070.01716.45
7.4.110.0030.01716.39
7.4.100.0140.00716.44
7.4.90.0120.00916.49
7.4.80.0070.01919.39
7.4.70.0100.01016.33
7.4.60.0090.01016.44
7.4.50.0030.00916.25
7.4.40.0100.01022.77
7.4.30.0100.01016.37
7.4.00.0100.00714.67
7.3.330.0050.00213.09
7.3.320.0000.00713.06
7.3.310.0000.00916.21
7.3.300.0030.00616.24
7.3.290.0130.01016.29
7.3.280.0120.00916.23
7.3.270.0060.01317.40
7.3.260.0110.00816.26
7.3.250.0130.00816.45
7.3.240.0150.00916.58
7.3.230.0160.01016.62
7.3.210.0060.01316.40
7.3.200.0110.00819.39
7.3.190.0040.01816.29
7.3.180.0090.01516.51
7.3.170.0080.01016.52
7.3.160.0040.01516.42
7.3.120.0040.01514.91
7.2.330.0030.01816.53
7.2.320.0120.00916.35
7.2.310.0060.01416.55
7.2.300.0030.01516.52
7.2.290.0100.01316.74
7.2.80.0060.00916.72
7.2.60.0120.00316.47
7.2.00.0060.00919.50
7.1.200.0070.00715.91
7.1.100.0210.00717.75
7.1.70.0030.00716.98
7.1.60.0140.01419.82
7.1.50.0090.01816.99
7.1.00.0070.04722.36
7.0.200.0060.00316.85
7.0.140.0100.07022.21
7.0.60.0070.04020.00
7.0.50.0100.05717.86
7.0.40.0070.04320.16
7.0.30.0300.05720.22
7.0.20.0230.07320.09
7.0.10.0200.06320.12
7.0.00.0030.04320.16
5.6.280.0000.08021.02
5.6.210.0170.06720.75
5.6.200.0100.08018.15
5.6.190.0200.08020.62
5.6.180.4170.04020.36
5.6.170.0270.07020.52
5.6.160.0070.08020.49
5.6.150.0070.08318.22
5.6.140.0030.05718.21
5.6.130.0100.07318.12
5.6.120.0070.08721.11
5.6.110.0030.07021.13
5.6.100.0200.06721.12
5.6.90.0070.08721.10
5.6.80.0070.08020.38
5.6.70.0100.04320.39
5.5.350.0270.08020.38
5.5.340.0030.04017.98
5.5.330.0100.06020.21
5.5.320.0300.08020.24
5.5.310.0330.03720.26
5.5.300.0070.04317.92
5.5.290.0030.05317.91
5.5.280.0030.08020.79
5.5.270.0170.08020.86
5.5.260.0100.09020.94
5.5.250.0170.06320.77
5.5.240.0100.06720.23
5.4.450.0730.07319.47
5.4.440.0730.07019.32
5.4.430.1100.07719.61
5.4.420.0200.05019.11
5.4.410.0870.05019.42
5.4.400.0500.06718.77
5.4.390.0330.05318.68
5.4.380.0230.06018.56
5.4.370.0130.05718.52
5.4.360.0230.04718.50
5.4.350.0060.04411.97
5.4.340.0100.03911.96
5.4.320.0030.04212.45
5.4.310.0070.05212.45
5.4.300.0100.03412.45
5.4.290.0020.04412.45
5.4.280.0090.03512.34
5.4.270.0090.04112.35
5.4.260.0060.03912.35
5.4.250.0130.04719.03
5.4.240.0070.05718.69
5.4.230.0100.05318.77
5.4.220.0070.06018.93
5.4.210.0000.06018.87
5.4.200.0100.05318.89
5.4.190.0030.08318.98
5.4.180.0100.05318.98
5.4.170.0230.04318.64
5.4.160.0130.05019.02
5.4.150.0030.06318.87
5.4.140.0070.06016.46
5.4.130.0070.05316.29
5.4.120.0100.05016.48
5.4.110.0000.06016.48
5.4.100.0030.05316.52
5.4.90.0130.04316.34
5.4.80.0070.05016.21
5.4.70.0100.07016.28
5.4.60.0070.08016.21
5.4.50.0030.05716.23
5.4.40.0030.05716.37
5.4.30.0070.05316.31
5.4.20.0030.05316.35
5.4.10.0100.07016.20
5.4.00.0030.05715.83
5.3.290.0060.04112.80
5.3.280.0100.05014.51
5.3.270.0170.05014.70
5.3.260.0170.04314.64
5.3.250.0030.05714.32
5.3.240.0000.06314.46
5.3.230.0070.05714.59
5.3.220.0030.08714.58
5.3.210.0100.05714.61
5.3.200.0070.06714.57
5.3.190.0100.07714.56
5.3.180.0130.04714.45
5.3.170.0070.07314.40
5.3.160.0070.05314.45
5.3.150.0100.05014.58
5.3.140.0070.05314.57
5.3.130.0130.05014.59
5.3.120.0100.07714.32
5.3.110.0070.05714.56
5.3.100.0070.05313.92
5.3.90.0070.05314.16
5.3.80.0030.05713.79
5.3.70.0070.05313.79
5.3.60.0100.04313.91
5.3.50.0100.04714.02
5.3.40.0000.05313.80
5.3.30.0100.04313.88
5.3.20.0000.05313.69
5.3.10.0130.04013.65
5.3.00.0100.05313.39
5.2.170.0100.03311.09
5.2.160.0070.03711.09
5.2.150.0030.06011.06
5.2.140.0070.04011.00
5.2.130.0100.05310.91
5.2.120.0070.05010.92
5.2.110.0030.04711.11
5.2.100.0030.05711.06
5.2.90.0000.04311.05
5.2.80.0030.04710.87
5.2.70.0000.06311.01
5.2.60.0100.03310.91
5.2.50.0030.06010.98
5.2.40.0000.06010.92
5.2.30.0000.04310.90
5.2.20.0000.04310.88
5.2.10.0100.03310.93
5.2.00.0070.03710.80
5.1.60.0070.03010.05
5.1.50.0030.03310.09
5.1.40.0030.0339.93
5.1.30.0000.04010.48
5.1.20.0070.03310.42
5.1.10.0170.03710.21
5.1.00.0030.0379.82
5.0.50.0100.0238.64
5.0.40.0030.0278.58
5.0.30.0070.0408.28
5.0.20.0070.0238.32
5.0.10.0070.0238.14
5.0.00.0000.0438.11
4.4.90.0000.0236.56
4.4.80.0030.0206.56
4.4.70.0000.0236.56
4.4.60.0030.0206.56
4.4.50.0100.0136.56
4.4.40.0000.0336.56
4.4.30.0030.0206.56
4.4.20.0000.0236.56
4.4.10.0000.0336.56
4.4.00.0030.0336.56
4.3.110.0000.0236.56
4.3.100.0070.0176.56
4.3.90.0000.0276.56
4.3.80.0100.0236.56
4.3.70.0030.0206.56
4.3.60.0030.0206.56
4.3.50.0000.0276.56
4.3.40.0030.0306.56
4.3.30.0000.0236.56
4.3.20.0030.0206.56
4.3.10.0000.0236.56
4.3.00.0130.0238.37

preferences:
37.23 ms | 400 KiB | 5 Q