3v4l.org

run code in 300+ PHP versions simultaneously
<?php $setting = '$2y$04$'; $salt = '1234567890123456789012'; // SAME SALT FOR ALL PASSWORDS, OMG, DON'T $passwd1 = str_repeat('A', 256); $passwd2 = str_repeat('A', 513); $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.0190.00618.43
8.3.50.0080.01021.21
8.3.40.0110.00718.86
8.3.30.0100.00718.92
8.3.20.0000.00920.30
8.3.10.0070.01121.92
8.3.00.0030.00722.52
8.2.180.0100.01616.50
8.2.170.0100.00722.96
8.2.160.0150.00320.38
8.2.150.0060.00324.18
8.2.140.0030.00624.66
8.2.130.0000.01026.16
8.2.120.0150.00319.77
8.2.110.0000.01120.52
8.2.100.0100.00317.91
8.2.90.0000.01019.18
8.2.80.0000.01019.34
8.2.70.0100.00017.38
8.2.60.0110.00017.93
8.2.50.0070.00418.07
8.2.40.0000.01018.00
8.2.30.0000.00918.04
8.2.20.0060.00317.71
8.2.10.0030.00817.68
8.2.00.0030.00717.80
8.1.280.0100.01025.92
8.1.270.0000.01020.36
8.1.260.0030.00626.35
8.1.250.0040.00728.09
8.1.240.0050.00524.02
8.1.230.0070.00717.64
8.1.220.0050.00517.76
8.1.210.0070.00318.77
8.1.200.0040.00717.23
8.1.190.0060.00317.18
8.1.180.0040.00718.80
8.1.170.0030.00618.65
8.1.160.0030.00722.18
8.1.150.0030.00618.45
8.1.140.0030.00717.42
8.1.130.0030.01017.93
8.1.120.0000.00917.45
8.1.110.0000.01017.37
8.1.100.0060.00317.46
8.1.90.0060.00317.30
8.1.80.0050.00517.44
8.1.70.0030.00717.38
8.1.60.0070.00317.52
8.1.50.0030.00817.36
8.1.40.0030.00617.38
8.1.30.0000.01117.48
8.1.20.0030.00617.50
8.1.10.0000.01017.42
8.1.00.0040.00917.41
8.0.300.0110.00018.77
8.0.290.0030.00717.05
8.0.280.0000.00918.35
8.0.270.0030.00617.19
8.0.260.0000.00816.77
8.0.250.0000.00916.97
8.0.240.0000.01116.96
8.0.230.0040.00416.84
8.0.220.0000.00916.84
8.0.210.0000.00916.89
8.0.200.0030.00616.86
8.0.190.0030.00716.85
8.0.180.0060.00316.81
8.0.170.0070.00316.92
8.0.160.0060.00616.86
8.0.150.0030.00616.75
8.0.140.0060.00616.77
8.0.130.0000.00813.34
8.0.120.0100.00016.86
8.0.110.0030.00616.87
8.0.100.0000.01016.95
8.0.90.0000.00917.00
8.0.80.0090.00916.94
8.0.70.0000.00916.78
8.0.60.0000.00916.85
8.0.50.0060.00316.94
8.0.30.0150.00917.02
8.0.20.0100.01417.40
8.0.10.0070.00316.75
8.0.00.0100.01216.72
7.4.330.0000.00815.00
7.4.320.0030.00616.58
7.4.300.0030.00616.41
7.4.290.0030.00616.39
7.4.280.0000.01016.50
7.4.270.0030.00616.52
7.4.260.0040.00416.58
7.4.250.0030.00616.36
7.4.240.0020.00816.62
7.4.230.0030.00616.34
7.4.220.0100.02016.45
7.4.210.0070.01116.52
7.4.200.0030.00616.39
7.4.190.0000.00916.56
7.4.160.0130.00616.31
7.4.150.0100.01017.40
7.4.140.0090.01817.86
7.4.130.0070.01216.40
7.4.120.0070.01516.54
7.4.110.0130.01316.46
7.4.100.0060.01616.59
7.4.90.0070.01416.54
7.4.80.0030.01719.39
7.4.70.0060.01416.29
7.4.60.0040.01616.49
7.4.50.0040.00716.54
7.4.40.0090.00322.77
7.4.30.0040.01616.57
7.4.00.0070.01314.97
7.3.330.0000.00713.16
7.3.320.0030.00513.12
7.3.310.0000.00916.14
7.3.300.0060.00316.15
7.3.290.0090.00916.30
7.3.280.0130.01016.22
7.3.270.0060.01417.40
7.3.260.0080.01216.54
7.3.250.0090.01116.29
7.3.240.0120.00916.29
7.3.230.0110.00916.39
7.3.210.0070.01316.55
7.3.200.0130.01319.39
7.3.190.0060.01816.27
7.3.180.0110.00816.34
7.3.170.0040.01416.32
7.3.160.0040.01516.34
7.3.120.0060.01214.74
7.3.110.0100.00714.71
7.3.100.0080.01014.66
7.3.90.0020.01514.62
7.3.80.0050.01314.64
7.3.70.0110.00714.73
7.3.60.0050.01014.82
7.3.50.0060.01014.76
7.3.40.0030.01214.62
7.3.30.0020.01214.67
7.3.20.0090.01016.66
7.3.10.0100.00716.60
7.3.00.0030.01216.55
7.2.330.0060.01716.74
7.2.320.0110.00816.68
7.2.310.0100.01016.71
7.2.300.0150.00616.64
7.2.290.0040.01516.68
7.2.250.0100.01214.99
7.2.240.0030.01714.97
7.2.230.0100.01014.96
7.2.220.0100.00715.03
7.2.210.0050.00915.08
7.2.200.0090.00914.88
7.2.190.0050.00814.93
7.2.180.0070.00815.13
7.2.170.0070.00714.70
7.2.60.0000.01916.76
7.2.00.0060.00919.35
7.1.330.0020.01615.75
7.1.320.0050.00715.91
7.1.310.0070.01015.79
7.1.300.0020.01615.67
7.1.290.0070.00715.66
7.1.280.0100.00715.63
7.1.270.0050.01115.80
7.1.260.0030.01415.89
7.1.200.0040.00715.71
7.1.100.0030.01318.22
7.1.70.0000.01916.94
7.1.60.0100.01719.82
7.1.50.0000.02516.75
7.1.00.0070.06322.32
7.0.200.0060.00616.70
7.0.140.0000.08022.01
7.0.80.0030.07019.92
7.0.70.0030.04719.97
7.0.60.0100.08720.02
7.0.50.0030.04320.26
7.0.40.0100.05020.07
7.0.30.0070.08720.04
7.0.20.0130.08720.00
7.0.10.0030.03720.03
7.0.00.0170.07020.14
5.6.280.0070.07320.81
5.6.230.0130.03720.56
5.6.220.0070.03320.65
5.6.210.0070.08320.66
5.6.200.0070.04721.13
5.6.190.0100.08321.01
5.6.180.0100.09021.12
5.6.170.0100.08020.95
5.6.160.0100.03020.95
5.6.150.0000.09321.16
5.6.140.0070.03321.05
5.6.130.0030.08321.03
5.6.120.0070.04021.03
5.6.110.0070.07721.15
5.6.100.0130.07021.11
5.6.90.0030.04021.10
5.6.80.0100.07020.46
5.6.70.0070.04020.45
5.6.60.0070.08020.41
5.6.50.0000.07720.41
5.6.40.0070.07320.48
5.6.30.0030.04020.44
5.6.20.0030.03720.34
5.6.10.0000.08720.30
5.6.00.0100.07720.33
5.5.370.0070.04020.36
5.5.360.0070.04720.50
5.5.350.0100.03020.45
5.5.340.0070.07320.63
5.5.330.0130.06720.88
5.5.320.0000.05020.64
5.5.310.0030.07020.86
5.5.300.0000.04020.91
5.5.290.0100.04320.82
5.5.280.0100.05720.82
5.5.270.0070.03720.75
5.5.260.0070.06720.85
5.5.250.0100.07720.56
5.5.240.0100.08720.24
5.5.230.0070.07020.28
5.5.220.0200.06720.17
5.5.210.0100.07720.16
5.5.200.0100.06020.18
5.5.190.0070.03320.08
5.5.180.0030.08720.10
5.5.160.0070.07020.16
5.5.150.0130.07720.13
5.5.140.0100.07020.07
5.5.130.0130.07020.23
5.5.120.0030.03720.22
5.5.110.0130.08020.07
5.5.100.0130.07720.01
5.5.90.0030.04720.16
5.5.80.0000.03720.20
5.5.70.0000.04019.95
5.5.60.0100.06320.11
5.5.50.0000.04719.90
5.5.40.0030.03320.13
5.5.30.0100.03720.08
5.5.20.0030.04019.92
5.5.10.0070.03719.96
5.5.00.0030.04719.96
5.4.450.0030.04319.45
5.4.440.0070.08319.36
5.4.430.0000.05319.11
5.4.420.0000.06719.30
5.4.410.0170.06719.23
5.4.400.0070.08319.06
5.4.390.0030.04018.98
5.4.380.0070.03018.90
5.4.370.0030.04018.96
5.4.360.0000.05319.00
5.4.350.0030.04019.07
5.4.340.0130.06319.03
5.4.320.0030.04018.95
5.4.310.0000.04319.12
5.4.300.0030.03318.96
5.4.290.0070.06318.95
5.4.280.0030.03318.97
5.4.270.0030.08719.11
5.4.260.0070.08018.97
5.4.250.0070.03018.78
5.4.240.0000.03718.97
5.4.230.0100.06719.14
5.4.220.0000.03719.05
5.4.210.0000.03719.09
5.4.200.0000.03719.05
5.4.190.0100.07018.93
5.4.180.0070.03718.89
5.4.170.0030.07719.04
5.4.160.0070.08019.07
5.4.150.0000.05018.92
5.4.140.0070.03716.29
5.4.130.0100.08016.26
5.4.120.0030.03716.06
5.4.110.0000.07016.43
5.4.100.0000.07316.21
5.4.90.0070.07316.34
5.4.80.0000.04716.31
5.4.70.0070.03716.19
5.4.60.0000.03316.28
5.4.50.0030.07716.18
5.4.40.0100.07016.43
5.4.30.0030.04016.31
5.4.20.0030.06716.19
5.4.10.0030.04016.33
5.4.00.0030.08015.57
5.3.290.0100.04014.65
5.3.280.0070.04714.61
5.3.270.0070.04314.55
5.3.260.0030.08314.46
5.3.250.0000.04714.61
5.3.240.0070.08014.60
5.3.230.0070.04314.59
5.3.220.0070.05014.52
5.3.210.0030.03314.56
5.3.200.0000.07314.47
5.3.190.0100.07014.53
5.3.180.0000.05314.38
5.3.170.0030.04014.52
5.3.160.0070.07314.57
5.3.150.0030.07714.54
5.3.140.0030.06014.53
5.3.130.0030.07014.54
5.3.120.0000.03714.38
5.3.110.0130.06714.41
5.3.100.0170.06314.04
5.3.90.0070.07713.85
5.3.80.0070.05713.95
5.3.70.0030.07713.89
5.3.60.0030.04314.04
5.3.50.0130.06713.76
5.3.40.0200.06313.76
5.3.30.0030.08013.97
5.3.20.0070.06713.77
5.3.10.0070.06313.66
5.3.00.0030.07013.65
5.2.170.0070.06311.66
5.2.160.0030.05311.66
5.2.150.0000.04711.66
5.2.140.0030.06711.66
5.2.130.0100.06011.66
5.2.120.0000.04711.66
5.2.110.0070.05311.66
5.2.100.0030.05011.66
5.2.90.0030.06711.66
5.2.80.0030.05011.66
5.2.70.0070.05711.66
5.2.60.0030.04311.66
5.2.50.0000.03311.66
5.2.40.0030.06311.66
5.2.30.0070.04011.66
5.2.20.0030.05311.66
5.2.10.0030.06011.66
5.2.00.0070.06711.66
5.1.60.0030.06311.66
5.1.50.0030.04011.66
5.1.40.0070.03011.66
5.1.30.0030.05711.66
5.1.20.0070.05711.66
5.1.10.0070.05011.66
5.1.00.0100.05311.66
5.0.50.0130.03711.66
5.0.40.0030.05011.66
5.0.30.0000.05711.66
5.0.20.0100.03711.66
5.0.10.0070.03711.66
5.0.00.0030.03711.66
4.4.90.0000.02011.66
4.4.80.0030.02011.66
4.4.70.0200.02311.66
4.4.60.0070.03311.66
4.4.50.0070.02711.66
4.4.40.0030.05311.66
4.4.30.0030.02711.66
4.4.20.0070.02711.66
4.4.10.0030.03311.66
4.4.00.0030.05011.66
4.3.110.0000.03711.66
4.3.100.0000.04011.66
4.3.90.0000.03711.66
4.3.80.0000.05311.66
4.3.70.0000.04011.66
4.3.60.0000.03311.66
4.3.50.0000.03011.66
4.3.40.0070.03311.66
4.3.30.0000.03711.66
4.3.20.0030.03011.66
4.3.10.0000.02311.66
4.3.00.0000.03311.66

preferences:
55.43 ms | 401 KiB | 5 Q