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.60.0110.00718.18
8.3.50.0070.01221.02
8.3.40.0090.01218.66
8.3.30.0030.01418.80
8.3.20.0030.00720.21
8.3.10.0000.00922.04
8.3.00.0090.00022.51
8.2.180.0160.00618.13
8.2.170.0100.01322.96
8.2.160.0140.00720.38
8.2.150.0050.00524.18
8.2.140.0060.00324.66
8.2.130.0120.01226.16
8.2.120.0030.00619.67
8.2.110.0070.00721.04
8.2.100.0070.00717.91
8.2.90.0070.00419.27
8.2.80.0000.01017.97
8.2.70.0030.00717.63
8.2.60.0000.01119.65
8.2.50.0000.01118.10
8.2.40.0000.01020.42
8.2.30.0000.00917.93
8.2.20.0060.00317.56
8.2.10.0000.01017.74
8.2.00.0030.00917.64
8.1.280.0200.00725.92
8.1.270.0030.00720.25
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0000.01121.16
8.1.230.0060.00617.59
8.1.220.0000.01017.79
8.1.210.0000.01018.77
8.1.200.0000.01117.23
8.1.190.0030.00817.23
8.1.180.0070.00318.10
8.1.170.0040.00718.59
8.1.160.0030.00622.01
8.1.150.0000.00918.58
8.1.140.0030.00617.39
8.1.130.0040.00417.86
8.1.120.0030.00617.39
8.1.110.0070.00317.38
8.1.100.0000.00917.39
8.1.90.0030.00717.29
8.1.80.0030.00617.38
8.1.70.0000.00917.36
8.1.60.0080.00417.56
8.1.50.0030.00617.49
8.1.40.0000.01017.29
8.1.30.0060.00317.52
8.1.20.0030.00717.52
8.1.10.0090.00017.39
8.1.00.0040.00817.43
8.0.300.0060.00318.77
8.0.290.0080.00316.75
8.0.280.0000.00918.42
8.0.270.0030.00617.20
8.0.260.0060.00316.68
8.0.250.0080.00016.82
8.0.240.0000.01016.95
8.0.230.0000.00916.95
8.0.220.0040.00416.92
8.0.210.0000.00916.77
8.0.200.0030.00616.86
8.0.190.0060.00316.97
8.0.180.0050.00516.95
8.0.170.0060.00316.84
8.0.160.0000.00916.89
8.0.150.0060.00316.75
8.0.140.0060.00316.70
8.0.130.0000.00813.33
8.0.120.0000.00916.84
8.0.110.0060.00316.88
8.0.100.0030.00716.85
8.0.90.0000.00916.76
8.0.80.0070.01116.87
8.0.70.0030.00616.92
8.0.60.0000.01016.80
8.0.50.0030.00716.88
8.0.30.0140.00916.99
8.0.20.0080.01417.40
8.0.10.0000.01016.72
8.0.00.0090.01316.76
7.4.330.0040.00415.00
7.4.320.0060.00316.63
7.4.300.0040.00416.51
7.4.290.0000.00916.50
7.4.280.0060.00316.50
7.4.270.0030.00616.48
7.4.260.0060.00616.52
7.4.250.0060.00316.57
7.4.240.0030.00616.45
7.4.230.0000.00916.38
7.4.220.0150.00916.44
7.4.210.0050.01316.55
7.4.200.0030.00716.60
7.4.190.0000.01016.46
7.4.160.0060.01216.42
7.4.150.0090.01617.40
7.4.140.0070.01217.86
7.4.130.0080.01116.44
7.4.120.0100.01116.54
7.4.110.0150.01216.57
7.4.100.0090.01216.52
7.4.90.0080.01316.36
7.4.80.0070.01419.39
7.4.70.0060.01216.45
7.4.60.0160.00716.56
7.4.50.0000.00716.18
7.4.40.0060.01322.77
7.4.30.0000.01816.46
7.4.00.0070.01214.85
7.3.330.0030.00313.25
7.3.320.0000.00713.05
7.3.310.0070.00316.34
7.3.300.0000.00816.30
7.3.290.0070.01016.21
7.3.280.0110.00816.25
7.3.270.0000.02417.40
7.3.260.0070.01416.35
7.3.250.0100.01316.40
7.3.240.0090.01216.22
7.3.230.0100.01416.39
7.3.210.0120.00916.59
7.3.200.0030.01719.39
7.3.190.0100.01116.55
7.3.180.0120.00616.31
7.3.170.0160.00316.29
7.3.160.0090.00916.42
7.3.120.0080.01014.76
7.3.110.0100.01014.76
7.3.100.0040.01514.78
7.3.90.0120.00614.42
7.3.80.0040.01414.87
7.3.70.0070.01114.54
7.3.60.0130.00614.87
7.3.50.0100.00714.86
7.3.40.0100.00714.77
7.3.30.0040.01514.73
7.3.20.0040.01216.69
7.3.10.0070.01316.60
7.3.00.0060.00916.48
7.2.330.0150.00916.57
7.2.320.0110.01516.50
7.2.310.0150.00916.72
7.2.300.0090.01616.72
7.2.290.0060.01416.74
7.2.250.0030.01714.72
7.2.240.0070.01514.80
7.2.230.0070.01014.92
7.2.220.0070.00715.13
7.2.210.0030.01314.95
7.2.200.0030.01315.16
7.2.190.0030.01014.77
7.2.180.0070.01014.77
7.2.170.0150.00614.95
7.1.330.0040.01215.58
7.1.320.0040.01515.42
7.1.310.0060.00915.71
7.1.300.0030.01015.54
7.1.290.0070.01315.80
7.1.280.0100.01015.68
7.1.270.0070.01315.91
7.1.260.0080.00515.72
7.1.70.0030.01017.19
7.1.60.0030.02019.69
7.1.50.0000.01316.97
7.1.00.0000.07022.31
7.0.200.0030.01016.52
7.0.140.0070.07721.95
7.0.60.0030.07719.97
7.0.50.0100.06717.81
7.0.40.0100.08719.99
7.0.30.0300.07020.00
7.0.20.0330.04720.02
7.0.10.0200.08720.17
7.0.00.0000.10020.30
5.6.280.0030.07720.81
5.6.210.0100.07320.46
5.6.200.0070.08318.12
5.6.190.0030.06720.45
5.6.180.3670.05020.61
5.6.170.0200.04320.38
5.6.160.0070.08720.48
5.6.150.0100.04718.20
5.6.140.0000.04318.09
5.6.130.0030.04018.14
5.6.120.0130.05320.95
5.6.110.0130.08021.10
5.6.100.0000.04720.98
5.6.90.0030.04321.00
5.6.80.0000.05320.27
5.6.70.0230.08020.39
5.5.350.0270.07720.36
5.5.340.0100.08318.02
5.5.330.0000.04720.22
5.5.320.0270.07720.41
5.5.310.0170.05720.12
5.5.300.0030.08018.01
5.5.290.0100.08317.91
5.5.280.0100.07320.96
5.5.270.0070.08020.86
5.5.260.0170.07720.75
5.5.250.0130.08320.58
5.5.240.0130.07720.20
5.4.450.0730.06019.60
5.4.440.0870.06019.49
5.4.430.0770.06019.11
5.4.420.0900.05319.27
5.4.410.0800.05319.32
5.4.400.0570.06318.49
5.4.390.0430.06018.70
5.4.380.0270.05718.71
5.4.370.0130.05318.62
5.4.360.0200.05018.66
5.4.350.0090.04711.98
5.4.340.0060.04111.97
5.4.320.0070.04512.45
5.4.310.0060.04012.45
5.4.300.0070.04412.45
5.4.290.0070.04712.45
5.4.280.0050.04912.34
5.4.270.0100.03812.35
5.4.260.0120.04312.34
5.4.250.0070.05318.80
5.4.240.0130.04718.87
5.4.230.0070.06018.79
5.4.220.0070.06018.78
5.4.210.0100.08018.90
5.4.200.0100.05018.91
5.4.190.0200.06719.01
5.4.180.0130.05018.93
5.4.170.0170.04318.93
5.4.160.0070.05318.97
5.4.150.0100.05319.01
5.4.140.0170.04316.53
5.4.130.0170.04016.48
5.4.120.0100.04716.45
5.4.110.0070.05016.34
5.4.100.0270.03316.42
5.4.90.0130.04316.34
5.4.80.0100.04716.50
5.4.70.0070.05316.37
5.4.60.0030.05316.50
5.4.50.0070.05016.44
5.4.40.0130.06016.32
5.4.30.0100.04716.47
5.4.20.0070.05016.22
5.4.10.0100.05016.39
5.4.00.0070.05015.73
5.3.290.0040.04412.80
5.3.280.0070.05014.46
5.3.270.0130.04714.52
5.3.260.0100.05014.61
5.3.250.0070.05014.63
5.3.240.0100.05714.76
5.3.230.0070.05314.64
5.3.220.0030.05714.56
5.3.210.0030.06014.66
5.3.200.0130.04314.58
5.3.190.0100.07014.42
5.3.180.0100.05014.41
5.3.170.0030.05314.57
5.3.160.0070.05014.45
5.3.150.0070.05014.56
5.3.140.0100.04714.40
5.3.130.0000.06014.59
5.3.120.0130.04714.26
5.3.110.0000.06014.42
5.3.100.0070.05314.01
5.3.90.0130.04314.16
5.3.80.0070.06314.01
5.3.70.0070.06013.79
5.3.60.0100.04713.97
5.3.50.0070.04713.78
5.3.40.0070.04714.16
5.3.30.0100.04713.82
5.3.20.0030.05013.52
5.3.10.0070.04713.73
5.3.00.0070.05013.71
5.2.170.0000.04311.15
5.2.160.0030.04010.99
5.2.150.0030.04710.98
5.2.140.0070.04011.13
5.2.130.0030.04011.05
5.2.120.0000.04311.05
5.2.110.0030.04011.04
5.2.100.0030.04311.06
5.2.90.0030.04010.93
5.2.80.0070.03711.05
5.2.70.0030.04311.13
5.2.60.0030.04010.91
5.2.50.0030.04010.94
5.2.40.0030.04710.83
5.2.30.0070.03710.79
5.2.20.0000.04310.71
5.2.10.0030.04011.02
5.2.00.0070.03710.59
5.1.60.0070.0309.91
5.1.50.0030.0339.88
5.1.40.0000.03710.00
5.1.30.0100.04310.37
5.1.20.0030.04010.41
5.1.10.0000.0409.90
5.1.00.0000.03710.16
5.0.50.0000.0308.66
5.0.40.0030.0278.16
5.0.30.0000.0438.39
5.0.20.0000.0308.13
5.0.10.0000.0308.24
5.0.00.0030.0408.28
4.4.90.0030.0236.32
4.4.80.0000.0276.32
4.4.70.0030.0206.32
4.4.60.0030.0206.32
4.4.50.0030.0206.32
4.4.40.0030.0306.32
4.4.30.0030.0206.32
4.4.20.0000.0236.32
4.4.10.0070.0176.32
4.4.00.0000.0376.32
4.3.110.0000.0236.32
4.3.100.0030.0276.32
4.3.90.0000.0236.32
4.3.80.0030.0306.32
4.3.70.0030.0176.32
4.3.60.0030.0176.32
4.3.50.0000.0236.32
4.3.40.0000.0336.32
4.3.30.0070.0236.32
4.3.20.0030.0206.32
4.3.10.0000.0236.32
4.3.00.0330.0278.43

preferences:
41.22 ms | 401 KiB | 5 Q