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 = 'A' . $str . 'A'; $passwd2 = 'B' . $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.56
8.3.50.0080.01121.15
8.3.40.0070.01118.76
8.3.30.0000.01718.92
8.3.20.0100.00020.18
8.3.10.0030.00621.98
8.3.00.0060.00322.48
8.2.180.0120.00616.50
8.2.170.0130.01022.96
8.2.160.0030.01320.39
8.2.150.0100.00024.18
8.2.140.0000.01024.66
8.2.130.0110.00726.16
8.2.120.0090.00919.66
8.2.110.0110.00021.99
8.2.100.0030.01219.44
8.2.90.0000.01019.21
8.2.80.0060.00319.35
8.2.70.0070.00317.50
8.2.60.0000.01017.93
8.2.50.0040.00718.07
8.2.40.0060.00318.22
8.2.30.0090.00018.11
8.2.20.0000.00917.70
8.2.10.0060.00317.82
8.2.00.0000.01417.79
8.1.280.0120.00625.92
8.1.270.0030.00720.27
8.1.260.0050.00526.35
8.1.250.0000.00928.09
8.1.240.0070.00423.68
8.1.230.0030.01019.15
8.1.220.0100.00017.74
8.1.210.0050.00518.77
8.1.200.0000.01217.22
8.1.190.0030.00717.53
8.1.180.0060.00318.81
8.1.170.0030.00718.35
8.1.160.0030.00722.13
8.1.150.0030.00618.53
8.1.140.0070.00317.36
8.1.130.0000.00917.87
8.1.120.0050.00517.46
8.1.110.0030.00617.51
8.1.100.0000.01117.37
8.1.90.0000.00917.43
8.1.80.0000.00917.50
8.1.70.0000.00917.39
8.1.60.0100.00317.58
8.1.50.0030.00617.49
8.1.40.0000.01017.52
8.1.30.0000.01017.51
8.1.20.0050.00517.61
8.1.10.0030.00717.50
8.1.00.0090.00417.42
8.0.300.0030.00618.77
8.0.290.0030.00617.05
8.0.280.0030.00618.37
8.0.270.0030.00617.36
8.0.260.0040.00416.79
8.0.250.0000.00816.94
8.0.240.0040.00716.95
8.0.230.0040.00416.90
8.0.220.0060.00316.92
8.0.210.0000.00916.77
8.0.200.0030.00616.93
8.0.190.0000.00916.89
8.0.180.0000.00916.84
8.0.170.0030.00716.95
8.0.160.0000.01016.84
8.0.150.0030.00716.83
8.0.140.0030.00616.76
8.0.130.0000.00713.18
8.0.120.0000.01016.72
8.0.110.0030.00716.79
8.0.100.0030.00716.78
8.0.90.0030.00616.89
8.0.80.0070.01416.80
8.0.70.0030.00616.91
8.0.60.0060.00316.95
8.0.50.0000.00916.71
8.0.30.0120.00917.01
8.0.20.0050.01917.40
8.0.10.0070.00317.05
8.0.00.0090.01116.69
7.4.330.0000.00715.09
7.4.320.0060.00316.51
7.4.300.0030.00516.57
7.4.290.0030.00616.50
7.4.280.0030.00616.57
7.4.270.0040.00416.54
7.4.260.0040.00816.51
7.4.250.0040.00416.50
7.4.240.0020.00716.53
7.4.230.0000.00816.52
7.4.220.0100.01016.54
7.4.210.0090.01016.57
7.4.200.0030.00616.48
7.4.190.0000.01016.57
7.4.160.0130.01316.50
7.4.150.0100.01017.40
7.4.140.0090.01217.86
7.4.130.0080.01316.37
7.4.120.0070.01316.60
7.4.110.0140.00616.54
7.4.100.0130.01016.60
7.4.90.0080.01116.46
7.4.80.0100.01019.39
7.4.70.0130.00616.57
7.4.60.0060.01516.54
7.4.50.0030.00616.21
7.4.40.0030.01522.77
7.4.30.0060.01216.30
7.4.00.0110.01014.75
7.3.330.0040.00413.07
7.3.320.0040.00413.20
7.3.310.0000.00916.19
7.3.300.0000.00816.34
7.3.290.0040.01316.32
7.3.280.0120.00916.38
7.3.270.0060.01517.40
7.3.260.0100.01016.19
7.3.250.0120.01516.28
7.3.240.0100.01116.39
7.3.230.0060.01816.39
7.3.210.0130.01016.50
7.3.200.0120.00919.39
7.3.190.0150.01416.05
7.3.180.0060.01716.49
7.3.170.0060.01316.46
7.3.160.0200.00416.45
7.3.120.0070.01014.81
7.3.110.0070.01414.83
7.3.100.0030.01814.49
7.3.90.0060.01214.86
7.3.80.0040.01514.84
7.3.70.0030.01014.83
7.3.60.0000.01514.78
7.3.50.0000.01914.85
7.3.40.0070.01114.79
7.3.30.0080.00514.84
7.3.20.0060.00916.59
7.3.10.0030.01616.33
7.3.00.0080.00816.37
7.2.330.0030.01816.56
7.2.320.0180.00716.80
7.2.310.0060.02016.71
7.2.300.0100.01016.68
7.2.290.0120.00616.44
7.2.250.0030.01715.27
7.2.240.0100.01015.08
7.2.230.0100.00715.16
7.2.220.0060.01215.23
7.2.210.0030.00915.04
7.2.200.0080.00814.84
7.2.190.0070.01015.07
7.2.180.0090.00614.91
7.2.170.0060.00715.10
7.2.160.0030.01314.96
7.2.150.0060.00617.04
7.2.140.0100.00717.04
7.2.130.0070.01117.00
7.2.120.0000.01616.96
7.2.110.0100.00717.02
7.2.100.0030.01216.93
7.2.90.0060.00616.97
7.2.80.0100.01317.04
7.2.70.0030.01617.05
7.2.60.0020.01316.92
7.2.50.0090.00616.70
7.2.40.0000.01317.11
7.2.30.0060.01216.87
7.2.20.0030.00916.92
7.2.10.0030.01317.05
7.2.00.0050.01618.17
7.1.330.0100.01015.61
7.1.320.0070.01315.69
7.1.310.0030.00715.93
7.1.300.0030.01115.71
7.1.290.0060.01215.65
7.1.280.0060.00615.89
7.1.270.0060.01115.78
7.1.260.0030.00915.60
7.1.250.0070.00315.63
7.1.240.0070.00715.58
7.1.230.0100.01015.91
7.1.220.0030.00715.84
7.1.210.0110.00915.76
7.1.200.0050.01315.76
7.1.190.0000.01115.96
7.1.180.0030.01315.84
7.1.170.0120.00315.85
7.1.160.0000.01515.54
7.1.150.0060.00915.79
7.1.140.0080.00415.56
7.1.130.0060.00915.87
7.1.120.0060.00615.73
7.1.110.0030.01215.95
7.1.100.0060.00916.95
7.1.90.0030.01015.80
7.1.80.0100.00615.96
7.1.70.0000.01016.49
7.1.60.0020.01717.64
7.1.50.0050.01416.19
7.1.40.0030.01015.71
7.1.30.0030.01315.75
7.1.20.0080.00615.89
7.1.10.0060.01315.63
7.1.00.0050.04219.05
7.0.330.0030.00915.52
7.0.320.0100.00615.51
7.0.310.0100.01015.37
7.0.300.0110.00315.52
7.0.290.0080.00415.56
7.0.280.0030.01615.18
7.0.270.0070.00715.41
7.0.260.0060.00615.46
7.0.250.0070.01015.43
7.0.240.0000.01315.25
7.0.230.0030.01215.60
7.0.220.0040.01115.34
7.0.210.0000.01615.21
7.0.200.0020.01115.96
7.0.190.0060.01015.49
7.0.180.0000.01315.52
7.0.170.0070.00315.54
7.0.160.0060.01215.57
7.0.150.0000.01215.21
7.0.140.0020.04318.76
7.0.130.0000.01915.46
7.0.120.0060.00915.45
7.0.110.0060.01315.49
7.0.100.0050.04817.68
7.0.90.0120.04317.65
7.0.80.0070.04617.73
7.0.70.0080.03617.69
7.0.60.0170.04517.74
7.0.50.0030.05017.87
7.0.40.0120.04716.67
7.0.30.0050.04516.69
7.0.20.0080.03516.65
7.0.10.0070.05116.72
7.0.00.0030.02916.79
5.6.400.0030.01214.22
5.6.390.0140.00314.25
5.6.380.0060.01214.50
5.6.370.0100.01014.52
5.6.360.0080.00814.27
5.6.350.0040.00814.48
5.6.340.0040.01114.48
5.6.330.0030.01214.70
5.6.320.0070.01014.53
5.6.310.0080.00514.30
5.6.300.0110.00414.24
5.6.290.0030.01514.38
5.6.280.0060.00614.43
5.6.270.0070.01014.39
5.6.260.0000.01514.21
5.6.250.0050.04517.31
5.6.240.0120.02317.46
5.6.230.0080.05317.56
5.6.220.0070.03617.55
5.6.210.0100.04817.50
5.6.200.0080.02217.49
5.6.190.0090.03717.84
5.6.180.0120.04317.57
5.6.170.0060.02817.73
5.6.160.0100.02517.73
5.6.150.0080.02617.64
5.6.140.0050.04817.55
5.6.130.0070.03017.84
5.6.120.0090.04417.60
5.6.110.0050.04517.61
5.6.100.0020.05317.75
5.6.90.0110.04617.71
5.6.80.0050.03517.37
5.6.70.0050.03517.18
5.6.60.0030.03017.20
5.6.50.0030.04817.29
5.6.40.0040.02917.17
5.6.30.0070.04517.29
5.6.20.0030.03717.28
5.6.10.0100.04317.28
5.6.00.0030.04317.32
5.5.380.0080.04617.28
5.5.370.0050.03317.28
5.5.360.0100.04317.19
5.5.350.0050.04717.21
5.5.340.0030.04617.56
5.5.330.0080.02617.64
5.5.320.0090.04617.39
5.5.310.0150.03517.52
5.5.300.0050.04617.35
5.5.290.0110.05017.66
5.5.280.0050.04217.48
5.5.270.0050.05017.29
5.5.260.0100.04117.48
5.5.250.0050.04717.35
5.5.240.0030.04016.91
5.5.230.0100.04817.17
5.5.220.0050.02917.10
5.5.210.0080.04117.01
5.5.200.0050.05017.31
5.5.190.0020.05117.08
5.5.180.0050.04117.15
5.5.170.0070.01014.39
5.5.160.0070.04217.14
5.5.150.0030.03517.11
5.5.140.0030.04217.26
5.5.130.0080.04217.29
5.5.120.0100.03917.21
5.5.110.0090.03717.16
5.5.100.0100.03217.01
5.5.90.0070.04617.17
5.5.80.0100.03317.11
5.5.70.0080.04617.07
5.5.60.0030.03316.84
5.5.50.0030.05017.03
5.5.40.0080.03017.07
5.5.30.0100.04317.19
5.5.20.0030.05017.13
5.5.10.0050.04617.03
5.5.00.0070.05017.04
5.4.450.0030.04716.26
5.4.440.0070.04516.08
5.4.430.0020.04616.10
5.4.420.0100.04516.16
5.4.410.0160.03516.07
5.4.400.0120.02216.09
5.4.390.0100.04316.07
5.4.380.0050.03215.95
5.4.370.0100.04216.04
5.4.360.0040.03916.10
5.4.350.0030.03616.14
5.4.340.0030.03915.92
5.4.330.0070.00713.05
5.4.320.0030.03216.04
5.4.310.0030.04416.04
5.4.300.0080.03916.08
5.4.290.0050.02915.93
5.4.280.0090.04116.14
5.4.270.0080.03816.00
5.4.260.0100.04316.04
5.4.250.0050.02716.05
5.4.240.0040.02715.92
5.4.230.0050.04316.05
5.4.220.0030.03516.00
5.4.210.0080.04316.00
5.4.200.0080.04315.98
5.4.190.0060.04115.97
5.4.180.0030.05016.08
5.4.170.0060.04115.91
5.4.160.0070.04416.06
5.4.150.0020.03316.07
5.4.140.0030.02514.72
5.4.130.0080.03814.68
5.4.120.0030.02714.66
5.4.110.0040.04214.63
5.4.100.0070.02614.63
5.4.90.0050.04814.71
5.4.80.0000.02714.69
5.4.70.0040.02414.72
5.4.60.0050.04214.69
5.4.50.0050.02914.59
5.4.40.0050.02514.67
5.4.30.0020.04514.69
5.4.20.0070.02514.68
5.4.10.0070.04114.67
5.4.00.0030.02714.42
5.3.290.0070.04213.83
5.3.280.0080.03813.79
5.3.270.0020.03213.82
5.3.260.0050.04513.74
5.3.250.0050.04513.82
5.3.240.0090.02413.82
5.3.230.0030.02613.82
5.3.220.0050.04013.79
5.3.210.0060.02613.79
5.3.200.0070.04713.78
5.3.190.0050.05213.79
5.3.180.0040.02813.80
5.3.170.0050.02713.71
5.3.160.0050.03313.79
5.3.150.0050.02313.80
5.3.140.0030.04313.78
5.3.130.0050.02913.79
5.3.120.0030.04213.77
5.3.110.0020.04813.77
5.3.100.0070.04313.51
5.3.90.0060.02313.53
5.3.80.0040.04513.41
5.3.70.0060.02213.52
5.3.60.0020.03513.43
5.3.50.0040.04213.53
5.3.40.0090.03813.52
5.3.30.0020.03813.48
5.3.20.0050.03113.38
5.3.10.0080.03013.36
5.3.00.0020.02513.35
5.2.170.0070.03312.28
5.2.160.0000.05312.28
5.2.150.0030.05712.28
5.2.140.0130.05712.28
5.2.130.0000.06012.28
5.2.120.0070.05012.28
5.2.110.0000.03312.28
5.2.100.0070.02712.28
5.2.90.0070.04312.28
5.2.80.0070.03012.28
5.2.70.0030.06312.28
5.2.60.0100.02712.28
5.2.50.0000.03712.28
5.2.40.0030.06312.28
5.2.30.0070.06012.28
5.2.20.0030.03712.28
5.2.10.0130.03012.28
5.2.00.0070.06312.28
5.1.60.0100.05012.28
5.1.50.0070.05012.28
5.1.40.0030.05712.28
5.1.30.0100.05312.28
5.1.20.0130.05012.28
5.1.10.0000.04012.28
5.1.00.0070.04712.28
5.0.50.0000.04712.28
5.0.40.0070.04012.28
5.0.30.0070.06312.28
5.0.20.0000.04712.28
5.0.10.0070.03312.28
5.0.00.0030.05712.28
4.4.90.0030.03312.28
4.4.80.0070.03012.28
4.4.70.0000.04012.28
4.4.60.0070.03312.28
4.4.50.0030.02012.28
4.4.40.0030.04712.28
4.4.30.0000.03712.28
4.4.20.0030.02012.28
4.4.10.0030.03712.28
4.4.00.0000.06312.28
4.3.110.0000.03712.28
4.3.100.0000.03712.28
4.3.90.0000.03712.28
4.3.80.0030.03312.28
4.3.70.0000.03712.28
4.3.60.0000.02712.28
4.3.50.0030.03312.28
4.3.40.0030.05012.28
4.3.30.0070.03012.28
4.3.20.0030.03312.28
4.3.10.0030.03712.28
4.3.00.0000.03312.28

preferences:
39.96 ms | 401 KiB | 5 Q