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 . 'č'; $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.0130.01318.43
8.3.50.0060.01521.02
8.3.40.0180.00618.70
8.3.30.0070.01018.92
8.3.20.0050.00520.06
8.3.10.0060.00322.16
8.3.00.0030.00622.35
8.2.180.0040.01516.50
8.2.170.0140.01122.96
8.2.160.0130.00320.45
8.2.150.0060.00324.18
8.2.140.0060.00324.66
8.2.130.0070.01126.16
8.2.120.0030.00619.66
8.2.110.0070.00320.47
8.2.100.0070.00719.33
8.2.90.0070.00319.25
8.2.80.0000.01019.40
8.2.70.0000.01117.50
8.2.60.0000.01018.04
8.2.50.0050.00518.07
8.2.40.0000.00918.09
8.2.30.0060.00318.06
8.2.20.0070.00317.65
8.2.10.0000.00917.62
8.2.00.0040.00819.52
8.1.280.0030.01525.92
8.1.270.0000.00923.99
8.1.260.0060.00326.35
8.1.250.0000.01028.09
8.1.240.0080.00423.88
8.1.230.0030.00919.09
8.1.220.0060.00317.79
8.1.210.0000.01118.77
8.1.200.0060.00617.35
8.1.190.0070.00317.52
8.1.180.0000.00918.93
8.1.170.0060.00318.56
8.1.160.0040.00522.05
8.1.150.0030.00618.65
8.1.140.0030.00617.37
8.1.130.0000.00917.83
8.1.120.0060.00317.45
8.1.110.0030.00617.25
8.1.100.0000.00917.42
8.1.90.0000.01117.29
8.1.80.0060.00317.29
8.1.70.0000.00917.36
8.1.60.0040.00817.51
8.1.50.0030.00717.34
8.1.40.0050.00517.32
8.1.30.0030.00617.50
8.1.20.0030.00717.64
8.1.10.0000.01017.49
8.1.00.0030.01017.32
8.0.300.0030.00618.77
8.0.290.0000.01017.05
8.0.280.0070.00318.45
8.0.270.0030.00617.30
8.0.260.0030.00616.80
8.0.250.0000.00916.84
8.0.240.0000.01016.84
8.0.230.0040.00416.94
8.0.220.0000.00916.78
8.0.210.0000.00816.90
8.0.200.0000.00916.95
8.0.190.0000.01016.84
8.0.180.0070.00316.79
8.0.170.0000.01016.81
8.0.160.0100.00016.76
8.0.150.0060.00316.88
8.0.140.0000.00916.87
8.0.130.0000.00713.24
8.0.120.0000.00916.75
8.0.110.0000.01016.82
8.0.100.0050.00516.66
8.0.90.0000.00916.92
8.0.80.0030.01716.87
8.0.70.0030.00616.88
8.0.60.0090.00016.95
8.0.50.0060.00316.95
8.0.30.0100.01317.01
8.0.20.0100.01117.40
8.0.10.0070.00317.05
8.0.00.0080.01316.79
7.4.330.0030.00515.09
7.4.320.0030.00616.61
7.4.300.0040.00416.59
7.4.290.0040.00416.64
7.4.280.0030.00616.59
7.4.270.0000.00816.37
7.4.260.0030.00616.50
7.4.250.0050.00516.54
7.4.240.0040.00516.54
7.4.230.0000.01016.53
7.4.220.0130.01716.42
7.4.210.0090.01116.55
7.4.200.0000.00916.50
7.4.190.0090.00016.55
7.4.160.0070.01416.26
7.4.150.0160.01017.40
7.4.140.0090.01117.86
7.4.130.0090.01316.48
7.4.120.0100.01316.40
7.4.110.0030.01816.60
7.4.100.0060.01516.49
7.4.90.0130.00716.33
7.4.80.0060.01519.39
7.4.70.0060.01316.27
7.4.60.0110.00816.32
7.4.50.0040.00716.30
7.4.40.0060.01222.77
7.4.30.0030.01716.49
7.4.00.0040.01414.96
7.3.330.0000.00713.02
7.3.320.0000.00712.98
7.3.310.0030.00616.12
7.3.300.0000.00916.27
7.3.290.0120.00616.31
7.3.280.0060.01116.25
7.3.270.0060.02017.40
7.3.260.0100.01016.29
7.3.250.0070.01316.35
7.3.240.0060.01516.56
7.3.230.0060.01616.39
7.3.210.0100.01016.32
7.3.200.0040.01719.39
7.3.190.0120.01216.51
7.3.180.0180.00316.52
7.3.170.0060.01316.38
7.3.160.0110.00816.43
7.3.120.0040.01414.88
7.2.330.0120.00916.56
7.2.320.0100.01116.73
7.2.310.0090.01216.41
7.2.300.0100.01016.72
7.2.290.0090.01016.45
7.2.00.0000.02019.47
7.1.100.0000.01418.10
7.1.70.0030.01017.08
7.1.60.0000.01317.11
7.1.50.0070.01816.66
7.1.00.0030.04322.28
7.0.200.0090.00916.60
7.0.140.0000.08021.95
7.0.60.0000.07719.95
7.0.50.0100.08017.82
7.0.40.0100.04319.90
7.0.30.0230.08320.09
7.0.20.0270.07720.02
7.0.10.0300.08020.00
7.0.00.0030.08720.09
5.6.280.0030.07720.98
5.6.210.0070.08020.71
5.6.200.0070.08318.13
5.6.190.0170.06720.41
5.6.180.3500.04320.63
5.6.170.0230.04020.47
5.6.160.0000.04720.47
5.6.150.0100.06018.14
5.6.140.0070.04018.16
5.6.130.0100.07718.21
5.6.120.0030.04321.14
5.6.110.0130.06721.13
5.6.100.0130.08721.10
5.6.90.0070.04020.97
5.6.80.0000.05320.41
5.6.70.0170.08320.49
5.5.350.0330.07020.44
5.5.340.0030.04018.00
5.5.330.0000.07720.16
5.5.320.0230.07720.34
5.5.310.0230.08320.29
5.5.300.0030.04718.03
5.5.290.0030.05717.89
5.5.280.0030.07320.75
5.5.270.0170.07320.86
5.5.260.0000.05020.72
5.5.250.0130.07720.70
5.5.240.0170.04320.25
5.4.450.0630.06719.32
5.4.440.0870.07019.45
5.4.430.0830.05019.53
5.4.420.1030.04719.27
5.4.410.0870.05319.00
5.4.400.0200.06318.75
5.4.390.1100.04718.68
5.4.380.0270.05718.68
5.4.370.0170.05318.68
5.4.360.0100.05718.70
5.4.350.0080.05111.97
5.4.340.0100.05211.96
5.4.320.0080.03612.45
5.4.310.0060.04012.45
5.4.300.0050.03912.45
5.4.290.0040.04312.45
5.4.280.0060.04212.34
5.4.270.0080.03812.34
5.4.260.0050.04612.34
5.4.250.0170.04718.83
5.4.240.0000.06318.74
5.4.230.0170.05018.72
5.4.220.0100.07718.92
5.4.210.0100.06018.83
5.4.200.0100.05018.79
5.4.190.0100.06018.83
5.4.180.0070.07718.64
5.4.170.0170.06018.89
5.4.160.0100.07718.72
5.4.150.0170.07718.86
5.4.140.0200.06316.47
5.4.130.0070.05016.48
5.4.120.0030.07016.29
5.4.110.0030.06016.29
5.4.100.0100.06716.49
5.4.90.0170.06016.34
5.4.80.0130.06716.41
5.4.70.0030.06016.32
5.4.60.0070.05016.33
5.4.50.0000.05716.47
5.4.40.0130.04316.34
5.4.30.0070.05016.22
5.4.20.0000.05316.32
5.4.10.0070.05316.39
5.4.00.0100.05015.70
5.3.290.0050.04212.80
5.3.280.0130.05014.51
5.3.270.0200.05014.62
5.3.260.0100.08014.61
5.3.250.0100.06714.52
5.3.240.0170.05314.62
5.3.230.0030.07714.48
5.3.220.0170.05014.58
5.3.210.0030.08714.27
5.3.200.0030.08014.41
5.3.190.0230.06014.57
5.3.180.0130.06314.43
5.3.170.0030.08314.33
5.3.160.0070.05014.41
5.3.150.0070.05314.58
5.3.140.0100.04714.45
5.3.130.0070.05714.54
5.3.120.0030.06314.54
5.3.110.0000.05714.54
5.3.100.0030.05314.04
5.3.90.0070.05314.06
5.3.80.0100.04714.03
5.3.70.0070.05014.04
5.3.60.0030.05313.76
5.3.50.0100.04313.84
5.3.40.0070.05014.03
5.3.30.0170.03714.00
5.3.20.0030.05013.80
5.3.10.0100.04713.80
5.3.00.0130.06013.55
5.2.170.0030.04011.09
5.2.160.0070.03711.10
5.2.150.0030.04010.95
5.2.140.0000.04310.98
5.2.130.0000.04310.93
5.2.120.0030.03711.13
5.2.110.0030.04010.94
5.2.100.0030.04011.09
5.2.90.0000.04710.96
5.2.80.0130.03311.02
5.2.70.0100.04311.04
5.2.60.0130.03010.87
5.2.50.0100.03710.71
5.2.40.0030.03710.84
5.2.30.0000.04310.92
5.2.20.0030.03710.85
5.2.10.0030.04010.91
5.2.00.0030.05310.73
5.1.60.0030.05010.16
5.1.50.0030.0339.70
5.1.40.0100.0309.99
5.1.30.0130.04010.24
5.1.20.0030.04010.46
5.1.10.0030.0379.82
5.1.00.0000.03710.02
5.0.50.0000.0308.61
5.0.40.0030.0278.46
5.0.30.0030.0608.29
5.0.20.0000.0278.31
5.0.10.0130.0178.10
5.0.00.0000.0438.31
4.4.90.0030.0206.04
4.4.80.0000.0236.04
4.4.70.0030.0206.04
4.4.60.0030.0276.04
4.4.50.0030.0206.04
4.4.40.0030.0336.04
4.4.30.0070.0206.04
4.4.20.0000.0236.04
4.4.10.0000.0236.04
4.4.00.0030.0436.04
4.3.110.0030.0206.04
4.3.100.0030.0206.04
4.3.90.0030.0176.04
4.3.80.0070.0276.04
4.3.70.0100.0136.04
4.3.60.0000.0236.04
4.3.50.0070.0176.04
4.3.40.0030.0306.04
4.3.30.0030.0206.04
4.3.20.0000.0236.04
4.3.10.0030.0206.04
4.3.00.0170.0308.43

preferences:
41.73 ms | 401 KiB | 5 Q