3v4l.org

run code in 300+ PHP versions simultaneously
<?php $setting = '$2y$4$'; $salt = '12345678901234589012'; // SAME SALT FOR ALL PASSWORDS, OMG, DON'T $str = '123456789012345678901234567890123456789012345678901234567890123456789012'; $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.70.0140.00418.18
8.3.60.0100.01017.93
8.3.50.0090.00921.08
8.3.40.0040.01118.85
8.3.30.0150.00718.79
8.3.20.0070.00720.30
8.3.10.0080.00021.92
8.3.00.0040.00422.46
8.2.180.0090.00616.63
8.2.170.0140.00422.96
8.2.160.0040.01120.52
8.2.150.0060.00324.18
8.2.140.0060.01324.66
8.2.130.0070.00026.16
8.2.120.0040.00419.54
8.2.110.0030.00621.95
8.2.100.0040.00719.21
8.2.90.0080.00018.86
8.2.80.0040.00419.21
8.2.70.0000.00817.50
8.2.60.0000.00817.93
8.2.50.0030.00618.07
8.2.40.0030.00518.22
8.2.30.0000.00717.97
8.2.20.0040.00417.60
8.2.10.0000.00817.79
8.2.00.0080.00017.66
8.1.280.0140.00425.92
8.1.270.0030.00620.36
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0160.00323.66
8.1.230.0030.00919.15
8.1.220.0000.01017.78
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0050.00317.52
8.1.180.0030.00520.15
8.1.170.0000.00818.46
8.1.160.0070.00022.18
8.1.150.0070.00418.53
8.1.140.0000.00717.38
8.1.130.0000.00717.75
8.1.120.0040.00417.44
8.1.110.0030.00617.24
8.1.100.0040.00417.27
8.1.90.0020.00517.27
8.1.80.0050.00317.23
8.1.70.0050.00217.30
8.1.60.0040.00417.47
8.1.50.0040.00417.45
8.1.40.0000.00917.38
8.1.30.0000.00817.51
8.1.20.0050.00317.53
8.1.10.0040.00417.44
8.1.00.0060.00617.40
8.0.300.0040.00418.77
8.0.290.0000.00817.18
8.0.280.0070.00018.44
8.0.270.0040.00417.36
8.0.260.0030.00316.72
8.0.250.0030.00316.87
8.0.240.0080.00016.88
8.0.230.0040.00416.92
8.0.220.0040.00416.84
8.0.210.0000.00716.93
8.0.200.0030.00316.83
8.0.190.0060.00316.79
8.0.180.0070.00016.89
8.0.170.0050.00316.83
8.0.160.0000.00716.92
8.0.150.0000.00716.87
8.0.140.0000.00816.87
8.0.130.0000.00613.35
8.0.120.0060.00316.75
8.0.110.0060.00316.71
8.0.100.0040.00416.89
8.0.90.0030.00516.94
8.0.80.0030.01316.83
8.0.70.0030.00516.88
8.0.60.0040.00416.96
8.0.50.0000.00816.92
8.0.30.0100.00916.93
8.0.20.0140.00417.40
8.0.10.0040.00416.82
8.0.00.0110.00816.79
7.4.330.0050.00015.00
7.4.320.0020.00516.42
7.4.300.0040.00416.50
7.4.290.0030.00316.39
7.4.280.0000.00716.50
7.4.270.0070.00016.42
7.4.260.0040.00416.48
7.4.250.0080.00016.47
7.4.240.0000.00716.55
7.4.230.0030.00316.69
7.4.220.0090.00916.63
7.4.210.0100.00816.63
7.4.200.0050.00216.55
7.4.190.0000.00716.66
7.4.160.0070.01716.60
7.4.150.0120.00617.40
7.4.140.0140.00517.86
7.4.130.0060.01116.34
7.4.120.0080.01016.59
7.4.110.0100.00716.36
7.4.100.0090.00916.65
7.4.90.0070.01416.48
7.4.80.0070.01019.39
7.4.70.0060.01216.41
7.4.60.0060.00916.44
7.4.50.0030.00616.32
7.4.40.0060.00922.77
7.4.30.0150.00616.53
7.4.10.0100.00715.14
7.4.00.0040.01515.01
7.3.330.0030.00313.02
7.3.320.0060.00012.99
7.3.310.0030.00316.30
7.3.300.0030.00316.16
7.3.290.0060.00916.21
7.3.280.0070.00816.29
7.3.270.0120.00617.40
7.3.260.0100.00716.55
7.3.250.0030.01516.26
7.3.240.0070.01116.46
7.3.230.0090.00916.39
7.3.210.0000.01716.46
7.3.200.0100.00719.39
7.3.190.0030.01716.45
7.3.180.0140.00316.21
7.3.170.0130.00416.27
7.3.160.0060.00916.31
7.3.130.0090.00914.53
7.3.120.0100.00614.95
7.3.110.0100.00715.00
7.3.100.0060.00914.58
7.3.90.0060.00615.03
7.3.80.0130.00314.73
7.3.70.0030.00514.61
7.3.60.0060.00614.79
7.3.50.0040.01114.53
7.3.40.0090.00314.46
7.3.30.0080.00414.79
7.3.20.0070.00716.77
7.3.10.0070.01016.50
7.3.00.0090.00316.79
7.2.330.0150.00316.79
7.2.320.0100.01016.45
7.2.310.0060.01716.62
7.2.300.0040.01216.79
7.2.290.0070.01016.65
7.2.260.0100.01014.67
7.2.250.0060.01014.82
7.2.240.0030.01115.16
7.2.230.0160.00314.95
7.2.220.0040.01514.94
7.2.210.0030.00914.92
7.2.200.0000.01114.99
7.2.190.0060.00915.12
7.2.180.0000.01614.88
7.2.170.0040.00814.73
7.2.160.0070.00714.80
7.2.150.0120.00317.02
7.2.140.0060.00817.05
7.2.130.0070.00716.69
7.2.120.0090.00616.95
7.2.110.0000.01417.05
7.2.100.0110.00416.73
7.2.90.0070.01116.92
7.2.80.0110.00016.79
7.2.70.0070.01016.72
7.2.60.0120.00316.81
7.2.50.0060.01016.99
7.2.40.0030.01316.77
7.2.30.0060.00917.07
7.2.20.0030.01017.11
7.2.10.0030.01016.61
7.2.00.0020.01318.05
7.1.330.0090.00616.00
7.1.320.0070.01116.00
7.1.310.0000.01415.71
7.1.300.0100.00715.89
7.1.290.0030.01415.59
7.1.280.0080.00515.97
7.1.270.0030.00615.44
7.1.260.0130.00315.84
7.1.250.0000.01815.87
7.1.240.0060.00315.83
7.1.230.0060.00915.96
7.1.220.0080.00315.93
7.1.210.0040.00815.82
7.1.200.0080.00515.83
7.1.190.0030.00715.73
7.1.180.0100.00315.77
7.1.170.0000.01415.84
7.1.160.0080.00615.58
7.1.150.0080.00315.72
7.1.140.0070.00715.88
7.1.130.0080.00815.50
7.1.120.0030.00815.60
7.1.110.0090.00915.95
7.1.100.0060.00816.70
7.1.90.0060.00616.00
7.1.80.0030.01015.93
7.1.70.0020.00916.51
7.1.60.0080.01217.76
7.1.50.0070.00616.19
7.1.40.0040.00815.80
7.1.30.0030.01315.66
7.1.20.0030.00615.74
7.1.10.0090.00315.76
7.1.00.0020.02419.14
7.0.330.0000.01215.34
7.0.320.0000.00915.63
7.0.310.0110.00415.48
7.0.300.0040.01115.51
7.0.290.0120.00615.45
7.0.280.0070.00715.29
7.0.270.0060.00915.53
7.0.260.0030.01015.27
7.0.250.0090.00915.41
7.0.240.0070.01015.51
7.0.230.0110.00715.55
7.0.220.0030.01315.55
7.0.210.0060.00615.32
7.0.200.0030.00816.14
7.0.190.0040.00815.53
7.0.180.0040.00815.43
7.0.170.0070.01015.53
7.0.160.0070.00715.46
7.0.150.0040.00815.15
7.0.140.0040.04218.79
7.0.130.0080.00815.31
7.0.120.0000.01315.54
7.0.110.0070.00715.42
7.0.100.0060.00615.13
7.0.90.0070.00715.50
7.0.80.0030.01015.48
7.0.70.0040.01115.55
7.0.60.0070.04717.73
7.0.50.0110.03516.64
7.0.40.0000.04216.88
7.0.30.0180.03316.89
7.0.20.0230.04216.79
7.0.10.0150.03716.81
7.0.00.0050.04316.81
5.6.400.0000.00914.38
5.6.390.0060.00914.43
5.6.380.0040.01114.62
5.6.370.0000.01014.09
5.6.360.0070.00714.66
5.6.350.0040.01414.67
5.6.340.0090.00314.58
5.6.330.0100.00314.26
5.6.320.0130.00714.63
5.6.310.0030.01014.43
5.6.300.0090.00614.18
5.6.290.0060.00914.18
5.6.280.0020.04317.77
5.6.270.0100.00714.52
5.6.260.0000.01414.45
5.6.250.0080.00614.18
5.6.240.0100.00714.66
5.6.230.0000.01214.20
5.6.220.0060.00914.44
5.6.210.0090.04417.50
5.6.200.0040.03316.31
5.6.190.0050.04917.20
5.6.180.1590.02517.46
5.6.170.0190.02317.42
5.6.160.0060.03717.53
5.6.150.0050.03316.36
5.6.140.0080.03316.38
5.6.130.0100.02516.22
5.6.120.0050.03317.87
5.6.110.0140.03717.57
5.6.100.0110.03517.65
5.6.90.0090.04317.55
5.6.80.0050.04217.42
5.6.70.0160.02617.21
5.6.60.0030.01214.25
5.6.50.0030.01014.31
5.6.40.0060.00914.41
5.6.30.0090.00314.32
5.6.20.0100.00014.28
5.6.10.0070.01114.54
5.6.00.0030.01214.40
5.5.380.0070.01014.61
5.5.370.0090.00314.23
5.5.360.0060.00614.56
5.5.350.0070.03017.21
5.5.340.0080.04216.18
5.5.330.0040.03317.23
5.5.320.0100.04817.23
5.5.310.0150.03417.14
5.5.300.0110.03316.16
5.5.290.0100.04016.08
5.5.280.0080.03017.51
5.5.270.0100.03117.66
5.5.260.0060.03117.38
5.5.250.0080.04617.53
5.5.240.0080.03817.25
5.5.230.0030.01014.23
5.5.220.0030.00913.96
5.5.210.0000.01514.20
5.5.200.0040.01114.11
5.5.190.0030.00714.35
5.5.180.0090.00614.06
5.5.170.0030.01514.30
5.5.160.0100.00614.46
5.5.150.0060.00614.09
5.5.140.0090.00614.20
5.5.130.0060.01014.44
5.5.120.0100.00314.38
5.5.110.0040.00714.36
5.5.100.0000.00914.31
5.5.90.0090.00914.05
5.5.80.0070.00714.14
5.5.70.0060.00614.36
5.5.60.0090.00314.11
5.5.50.0070.00713.95
5.5.40.0060.00914.07
5.5.30.0030.00914.46
5.5.20.0030.00914.19
5.5.10.0030.00813.74
5.5.00.0040.01114.17
5.4.450.0450.03416.32
5.4.440.0420.03516.31
5.4.430.0450.02916.25
5.4.420.0050.03216.13
5.4.410.0280.03816.18
5.4.400.0220.04115.91
5.4.390.0180.03915.77
5.4.380.0120.03215.83
5.4.370.0100.02815.86
5.4.360.0110.02915.80
5.4.350.0080.02612.49
5.4.340.0030.02312.49
5.4.330.0070.00712.95
5.4.320.0050.02312.73
5.4.310.0040.02412.73
5.4.300.0030.02312.73
5.4.290.0090.02412.73
5.4.280.0020.02212.68
5.4.270.0050.02012.68
5.4.260.0050.02712.68
5.4.250.0070.03016.02
5.4.240.0050.02916.00
5.4.230.0050.02815.95
5.4.220.0050.03115.95
5.4.210.0100.02715.95
5.4.200.0070.03015.94
5.4.190.0080.02615.85
5.4.180.0080.02415.97
5.4.170.0070.02915.96
5.4.160.0030.03515.92
5.4.150.0040.03415.97
5.4.140.0070.02814.64
5.4.130.0070.02614.65
5.4.120.0080.03214.67
5.4.110.0070.02914.62
5.4.100.0020.03214.69
5.4.90.0090.02314.72
5.4.80.0070.02614.72
5.4.70.0110.02014.67
5.4.60.0080.02214.67
5.4.50.0050.02614.71
5.4.40.0000.03214.78
5.4.30.0070.02514.62
5.4.20.0070.03714.63
5.4.10.0040.03114.67
5.4.00.0050.02614.47
5.3.290.0050.02212.88
5.3.280.0030.02913.83
5.3.270.0050.03013.72
5.3.260.0030.03313.81
5.3.250.0050.02913.69
5.3.240.0050.03113.74
5.3.230.0070.02713.76
5.3.220.0050.02813.79
5.3.210.0050.03013.71
5.3.200.0060.03013.79
5.3.190.0030.03313.84
5.3.180.0070.02713.71
5.3.170.0030.02713.80
5.3.160.0090.02313.71
5.3.150.0090.03213.74
5.3.140.0050.02813.74
5.3.130.0080.02813.71
5.3.120.0080.02913.86
5.3.110.0060.02613.78
5.3.100.0070.02513.53
5.3.90.0100.02213.40
5.3.80.0070.02813.44
5.3.70.0030.02813.44
5.3.60.0050.02813.51
5.3.50.0090.02413.49
5.3.40.0130.02013.40
5.3.30.0080.03513.43
5.3.20.0090.02313.29
5.3.10.0040.02713.27
5.3.00.0050.02813.25
5.2.170.0030.04010.96
5.2.160.0070.04311.10
5.2.150.0130.03011.15
5.2.140.0000.04311.18
5.2.130.0070.03711.02
5.2.120.0070.04011.06
5.2.110.0070.03711.05
5.2.100.0030.04010.94
5.2.90.0070.03710.93
5.2.80.0000.04311.02
5.2.70.0070.04011.13
5.2.60.0030.04011.01
5.2.50.0100.03710.86
5.2.40.0000.04310.81
5.2.30.0030.04310.77
5.2.20.0100.03310.97
5.2.10.0070.03711.03
5.2.00.0000.04310.56
5.1.60.0030.03310.08
5.1.50.0000.03710.13
5.1.40.0030.03310.14
5.1.30.0030.03710.38
5.1.20.0030.03710.42
5.1.10.0070.04010.12
5.1.00.0000.0379.94
5.0.50.0000.0339.09
5.0.40.0000.0379.09
5.0.30.0170.0439.09
5.0.20.0000.0279.09
5.0.10.0030.0279.09
5.0.00.0000.0439.09
4.4.90.0000.0239.09
4.4.80.0000.0209.09
4.4.70.0000.0239.09
4.4.60.0000.0239.09
4.4.50.0000.0209.09
4.4.40.0000.0339.09
4.4.30.0000.0209.09
4.4.20.0000.0239.09
4.4.10.0000.0239.09
4.4.00.0000.0339.09
4.3.110.0000.0239.09
4.3.100.0000.0209.09
4.3.90.0000.0209.09
4.3.80.0000.0339.09
4.3.70.0000.0209.09
4.3.60.0030.0179.09
4.3.50.0030.0209.09
4.3.40.0000.0339.09
4.3.30.0000.0239.09
4.3.20.0000.0239.09
4.3.10.0000.0239.09
4.3.00.0130.0208.15

preferences:
64.4 ms | 404 KiB | 6 Q