3v4l.org

run code in 300+ PHP versions simultaneously
<?php $setting = '$2a$04$'; $salt = '1234567890123456789012'; // SAME SALT FOR ALL PASSWORDS, OMG, DON'T $passwd1 = '000000000000000000000000000000000000000000000000000000000000000000000000'; $passwd2 = '012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234'; $passwd3 = '0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345'; $hash1 = crypt($passwd1, $setting . $salt); $hash2 = crypt($passwd2, $setting . $salt); $hash3 = crypt($passwd3, $setting . $salt); echo ($hash1 === $hash2 ? '1-2 same' : 'unique'); echo ($hash2 === $hash3 ? '2-3 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.00718.40
8.3.50.0070.01921.98
8.3.40.0130.01018.70
8.3.30.0060.01919.09
8.3.20.0000.01020.13
8.3.10.0070.00421.80
8.3.00.0160.01022.39
8.2.180.0150.00618.16
8.2.170.0130.01022.96
8.2.160.0190.00920.47
8.2.150.0090.00324.18
8.2.140.0000.01024.66
8.2.130.0070.00326.16
8.2.120.0030.00719.66
8.2.110.0060.00620.34
8.2.100.0070.00717.91
8.2.90.0080.00319.22
8.2.80.0070.00418.04
8.2.70.0060.00617.36
8.2.60.0030.00918.03
8.2.50.0030.00818.07
8.2.40.0070.00318.22
8.2.30.0000.01018.00
8.2.20.0030.00717.71
8.2.10.0000.01017.63
8.2.00.0060.00617.63
8.1.280.0100.01025.92
8.1.270.0040.00820.24
8.1.260.0070.00326.35
8.1.250.0030.00728.09
8.1.240.0080.00422.13
8.1.230.0040.01120.94
8.1.220.0000.01117.80
8.1.210.0040.00718.77
8.1.200.0000.01217.35
8.1.190.0000.01117.53
8.1.180.0000.01118.79
8.1.170.0070.00418.51
8.1.160.0000.01022.02
8.1.150.0030.00918.57
8.1.140.0000.01017.51
8.1.130.0090.00317.88
8.1.120.0000.01017.30
8.1.110.0060.00617.37
8.1.100.0030.00717.42
8.1.90.0100.00017.23
8.1.80.0040.00717.27
8.1.70.0080.00317.38
8.1.60.0030.00917.44
8.1.50.0030.00717.43
8.1.40.0050.00517.39
8.1.30.0030.00717.47
8.1.20.0040.00717.57
8.1.10.0030.00817.55
8.1.00.0060.00917.41
8.0.300.0030.00718.77
8.0.290.0000.01017.05
8.0.280.0000.01118.45
8.0.270.0050.00517.19
8.0.260.0000.00916.83
8.0.250.0050.00516.95
8.0.240.0040.00816.84
8.0.230.0000.01016.94
8.0.220.0030.00616.90
8.0.210.0030.00716.90
8.0.200.0030.00716.97
8.0.190.0060.00616.86
8.0.180.0050.00516.83
8.0.170.0050.00516.88
8.0.160.0000.01116.71
8.0.150.0000.01016.73
8.0.140.0040.00816.76
8.0.130.0000.00813.30
8.0.120.0030.00716.74
8.0.110.0030.00816.86
8.0.100.0000.01016.78
8.0.90.0030.00716.92
8.0.80.0120.01316.88
8.0.70.0000.01116.90
8.0.60.0030.00717.00
8.0.50.0030.00716.90
8.0.30.0140.00917.04
8.0.20.0120.01117.40
8.0.10.0030.00716.99
8.0.00.0150.01216.75
7.4.330.0000.00915.00
7.4.320.0030.00716.61
7.4.300.0050.00516.49
7.4.290.0030.00616.51
7.4.280.0000.01016.60
7.4.270.0030.00716.61
7.4.260.0000.01116.42
7.4.250.0070.00316.52
7.4.240.0020.00816.52
7.4.230.0050.00616.68
7.4.220.0110.01316.42
7.4.210.0080.01016.51
7.4.200.0070.00316.30
7.4.190.0060.00616.60
7.4.160.0120.00916.34
7.4.150.0100.01317.40
7.4.140.0120.01717.86
7.4.130.0080.01316.55
7.4.120.0060.01516.44
7.4.110.0100.01616.62
7.4.100.0110.01116.38
7.4.90.0070.01416.43
7.4.80.0060.01519.39
7.4.70.0090.01316.55
7.4.60.0030.01816.51
7.4.50.0070.00716.57
7.4.40.0070.01022.77
7.4.30.0120.00916.50
7.4.10.0090.01214.55
7.4.00.0060.01314.84
7.3.330.0040.00413.02
7.3.320.0030.00612.98
7.3.310.0080.00316.12
7.3.300.0030.00716.18
7.3.290.0100.01416.22
7.3.280.0130.00816.27
7.3.270.0140.00717.40
7.3.260.0150.00716.27
7.3.250.0060.01616.45
7.3.240.0060.01516.22
7.3.230.0120.01216.46
7.3.210.0100.01416.52
7.3.200.0000.02019.39
7.3.190.0120.01216.48
7.3.180.0120.00916.11
7.3.170.0100.01016.43
7.3.160.0080.01416.41
7.3.130.0090.00914.49
7.3.120.0080.00914.47
7.3.110.0120.00614.29
7.3.100.0070.01014.52
7.3.90.0160.00314.68
7.3.80.0030.00914.99
7.3.70.0060.00614.58
7.3.60.0030.01314.65
7.3.50.0060.00614.67
7.3.40.0110.00714.63
7.3.30.0070.01114.42
7.3.20.0030.01316.72
7.3.10.0070.01316.30
7.3.00.0080.00716.30
7.2.330.0070.01516.63
7.2.320.0070.01916.75
7.2.310.0030.02416.51
7.2.300.0190.00316.45
7.2.290.0080.01316.78
7.2.260.0030.01915.25
7.2.250.0130.00715.03
7.2.240.0070.01414.62
7.2.230.0140.00314.89
7.2.220.0090.00914.89
7.2.210.0030.01614.96
7.2.200.0030.01215.09
7.2.190.0030.01315.02
7.2.180.0100.01014.79
7.2.170.0000.01714.97
7.2.160.0060.01014.62
7.2.150.0000.01716.78
7.2.140.0030.01616.94
7.2.130.0080.01816.62
7.2.120.0100.01216.80
7.2.110.0170.00916.62
7.2.100.0170.00816.79
7.2.90.0100.01116.92
7.2.80.0130.01116.84
7.2.70.0110.01516.66
7.2.60.0080.01816.46
7.2.50.0110.01016.68
7.2.40.0120.01416.44
7.2.30.0070.01316.72
7.2.20.0090.01116.62
7.2.10.0140.00716.57
7.2.00.0060.01517.43
7.1.330.0100.01015.58
7.1.320.0070.01415.63
7.1.310.0000.01715.40
7.1.300.0060.01515.78
7.1.290.0030.01315.89
7.1.280.0100.00315.74
7.1.270.0030.01415.60
7.1.260.0060.01315.86
7.1.250.0100.01415.43
7.1.240.0030.01415.86
7.1.230.0070.01115.79
7.1.220.0030.00915.62
7.1.210.0000.01815.66
7.1.200.0100.00615.88
7.1.190.0070.01015.91
7.1.180.0000.01615.88
7.1.170.0070.00715.97
7.1.160.0070.01415.84
7.1.150.0000.01815.60
7.1.140.0000.01215.61
7.1.130.0100.00615.39
7.1.120.0000.01415.48
7.1.110.0040.01415.74
7.1.100.0070.01316.83
7.1.90.0040.01415.86
7.1.80.0000.01315.45
7.1.70.0040.01416.20
7.1.60.0050.01717.50
7.1.50.0030.01516.33
7.1.40.0030.01315.42
7.1.30.0070.01015.08
7.1.20.0030.01115.59
7.1.10.0030.01215.55
7.1.00.0030.02719.09
7.0.330.0070.01315.52
7.0.320.0060.00915.37
7.0.310.0030.01315.48
7.0.300.0000.01115.25
7.0.290.0110.01115.23
7.0.280.0090.00315.11
7.0.270.0070.01115.07
7.0.260.0060.01215.01
7.0.250.0030.01414.83
7.0.240.0030.01315.19
7.0.230.0100.00614.95
7.0.220.0070.01015.20
7.0.210.0000.02015.20
7.0.200.0050.00815.85
7.0.190.0030.01215.01
7.0.180.0040.00715.05
7.0.170.0040.01215.18
7.0.160.0040.01414.98
7.0.150.0030.01014.96
7.0.140.0040.04418.82
7.0.130.0080.01215.55
7.0.120.0030.01014.97
7.0.110.0060.03317.74
7.0.100.0070.05017.58
7.0.90.0020.04417.57
7.0.80.0050.03617.76
7.0.70.0080.02717.41
7.0.60.0120.04617.58
7.0.50.0080.04317.84
7.0.40.0100.04616.75
7.0.30.0050.05016.69
7.0.20.0080.04816.69
7.0.10.0070.05116.65
7.0.00.0050.04616.71
5.6.400.0070.00714.23
5.6.390.0030.01314.60
5.6.380.0100.00614.40
5.6.370.0030.01314.39
5.6.360.0080.00814.06
5.6.350.0000.01214.13
5.6.340.0000.01214.46
5.6.330.0070.01014.08
5.6.320.0110.00714.19
5.6.310.0030.01714.05
5.6.300.0070.01414.49
5.6.290.0120.00913.81
5.6.280.0080.04017.33
5.6.270.0000.01914.18
5.6.260.0060.00614.49
5.6.250.0100.04817.40
5.6.240.0030.03717.47
5.6.230.0080.03517.36
5.6.220.0130.04117.24
5.6.210.0100.04817.33
5.6.200.0100.02817.78
5.6.190.0030.05417.59
5.6.180.0100.04517.64
5.6.170.0080.03017.54
5.6.160.0050.02917.48
5.6.150.0080.04817.54
5.6.140.0070.04517.68
5.6.130.0120.04817.69
5.6.120.0070.05217.66
5.6.110.0050.04817.42
5.6.100.0080.04117.53
5.6.90.0080.04717.43
5.6.80.0050.03317.20
5.6.70.0080.04417.19
5.6.60.0050.04817.21
5.6.50.0030.05317.26
5.6.40.0070.04917.02
5.6.30.0120.04317.27
5.6.20.0050.04717.11
5.6.10.0030.05317.23
5.6.00.0070.04317.10
5.5.380.0130.03017.47
5.5.370.0100.04217.15
5.5.360.0020.04917.24
5.5.350.0100.03117.18
5.5.340.0080.04817.64
5.5.330.0070.04817.63
5.5.320.0030.04017.39
5.5.310.0080.04617.45
5.5.300.0090.04517.54
5.5.290.0080.03517.56
5.5.280.0070.05017.54
5.5.270.0110.04517.61
5.5.260.0020.03217.39
5.5.250.0120.04217.37
5.5.240.0060.04317.12
5.5.230.0100.04217.30
5.5.220.0030.02817.15
5.5.210.0030.04217.24
5.5.200.0050.05217.12
5.5.190.0120.04017.44
5.5.180.0100.04617.03
5.5.170.0030.01014.36
5.5.160.0050.04517.01
5.5.150.0080.04317.21
5.5.140.0100.04217.10
5.5.130.0120.03016.90
5.5.120.0050.03217.15
5.5.110.0070.04517.24
5.5.100.0080.04517.27
5.5.90.0140.04217.16
5.5.80.0070.04217.08
5.5.70.0050.03417.21
5.5.60.0070.04717.02
5.5.50.0050.04517.02
5.5.40.0050.05017.06
5.5.30.0130.04017.00
5.5.20.0130.03017.19
5.5.10.0120.04117.06
5.5.00.0120.04416.91
5.4.450.0040.03615.71
5.4.440.0100.04815.75
5.4.430.0050.03215.68
5.4.420.0070.04415.71
5.4.410.0080.04215.62
5.4.400.0050.04715.52
5.4.390.0080.04315.52
5.4.380.0050.03015.63
5.4.370.0120.03515.50
5.4.360.0080.04615.60
5.4.350.0070.02815.58
5.4.340.0070.04615.60
5.4.330.0060.00312.09
5.4.320.0050.04615.61
5.4.310.0050.04915.59
5.4.300.0000.03315.59
5.4.290.0050.04615.56
5.4.280.0030.05015.52
5.4.270.0030.04415.51
5.4.260.0050.02715.60
5.4.250.0070.04115.49
5.4.240.0070.04715.53
5.4.230.0070.04315.67
5.4.220.0080.04415.56
5.4.210.0030.04515.63
5.4.200.0030.04715.60
5.4.190.0050.04915.62
5.4.180.0070.04515.68
5.4.170.0030.04715.55
5.4.160.0080.04315.57
5.4.150.0080.04115.59
5.4.140.0050.04414.24
5.4.130.0050.04514.23
5.4.120.0100.03514.15
5.4.110.0090.03914.25
5.4.100.0030.03314.23
5.4.90.0050.04514.25
5.4.80.0030.04314.16
5.4.70.0170.01814.18
5.4.60.0030.04214.22
5.4.50.0080.04214.28
5.4.40.0070.04314.25
5.4.30.0080.03914.17
5.4.20.0080.03814.13
5.4.10.0050.04714.20
5.4.00.0050.04014.03
5.3.290.0050.04513.34
5.3.280.0060.04113.35
5.3.270.0080.04513.28
5.3.260.0070.02513.32
5.3.250.0070.04213.28
5.3.240.0020.04413.32
5.3.230.0110.04113.34
5.3.220.0060.04613.24
5.3.210.0080.04613.27
5.3.200.0040.04713.30
5.3.190.0080.03013.27
5.3.180.0020.04713.32
5.3.170.0080.04313.25
5.3.160.0030.04713.30
5.3.150.0060.04313.30
5.3.140.0050.04313.37
5.3.130.0080.04513.27
5.3.120.0030.04413.36
5.3.110.0070.03513.36
5.3.100.0070.04413.03
5.3.90.0050.04412.97
5.3.80.0020.04613.09
5.3.70.0070.04213.02
5.3.60.0030.04112.96
5.3.50.0040.04312.99
5.3.40.0040.04612.95
5.3.30.0000.04812.96
5.3.20.0040.04412.80
5.3.10.0070.03612.85
5.3.00.0070.03712.80
5.2.170.0100.03011.01
5.2.160.0000.06310.97
5.2.150.0070.03711.02
5.2.140.0100.05311.00
5.2.130.0070.05710.99
5.2.120.0030.06310.96
5.2.110.0030.06010.96
5.2.100.0070.05711.05
5.2.90.0030.06011.04
5.2.80.0000.06311.03
5.2.70.0000.06010.96
5.2.60.0030.03710.91
5.2.50.0070.05710.86
5.2.40.0030.06010.82
5.2.30.0070.06010.91
5.2.20.0130.03710.87
5.2.10.0070.05010.95
5.2.00.0070.05710.65
5.1.60.0030.05710.16
5.1.50.0070.0479.91
5.1.40.0070.05010.14
5.1.30.0070.06010.27
5.1.20.0070.05310.25
5.1.10.0030.05310.00
5.1.00.0000.05010.23
5.0.50.0000.0478.49
5.0.40.0070.0408.39
5.0.30.0070.0308.14
5.0.20.0030.0378.20
5.0.10.0030.0408.16
5.0.00.0030.0638.10
4.4.90.0030.0307.92
4.4.80.0030.0337.92
4.4.70.0000.0307.92
4.4.60.0030.0337.92
4.4.50.0030.0377.92
4.4.40.0000.0577.92
4.4.30.0000.0377.92
4.4.20.0100.0307.92
4.4.10.0000.0337.92
4.4.00.0000.0537.92
4.3.110.0000.0377.92
4.3.100.0030.0337.92
4.3.90.0030.0337.92
4.3.80.0070.0437.92
4.3.70.0030.0377.92
4.3.60.0000.0337.92
4.3.50.0030.0377.92
4.3.40.0000.0537.92
4.3.30.0030.0377.92
4.3.20.0030.0377.92
4.3.10.0000.0307.92
4.3.00.0070.0307.92

preferences:
47.37 ms | 401 KiB | 5 Q