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); $passwd1 = str_repeat('a', 512); $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.55
8.3.50.0060.01421.27
8.3.40.0140.00718.83
8.3.30.0040.01518.92
8.3.20.0070.00320.21
8.3.10.0060.00322.13
8.3.00.0030.00622.53
8.2.180.0180.00616.50
8.2.170.0030.01422.96
8.2.160.0060.01020.44
8.2.150.0060.00324.18
8.2.140.0030.00724.66
8.2.130.0100.01426.16
8.2.120.0000.01019.66
8.2.110.0000.01022.28
8.2.100.0100.00319.40
8.2.90.0060.00319.17
8.2.80.0060.00317.97
8.2.70.0030.00717.63
8.2.60.0000.01017.93
8.2.50.0030.00718.07
8.2.40.0090.00018.16
8.2.30.0000.00917.98
8.2.20.0070.00317.60
8.2.10.0090.00017.92
8.2.00.0060.00617.79
8.1.280.0070.01425.92
8.1.270.0040.00720.36
8.1.260.0050.00526.35
8.1.250.0100.00028.09
8.1.240.0040.00723.82
8.1.230.0030.00918.95
8.1.220.0050.00517.74
8.1.210.0000.01018.77
8.1.200.0060.00617.13
8.1.190.0060.00317.40
8.1.180.0000.01018.56
8.1.170.0000.01018.53
8.1.160.0000.00922.18
8.1.150.0000.01018.57
8.1.140.0040.00717.30
8.1.130.0040.00417.77
8.1.120.0040.00417.40
8.1.110.0030.00617.39
8.1.100.0030.00717.36
8.1.90.0000.00917.28
8.1.80.0030.00617.39
8.1.70.0000.00917.30
8.1.60.0030.00617.49
8.1.50.0030.00617.48
8.1.40.0000.00917.34
8.1.30.0030.00717.51
8.1.20.0000.01017.57
8.1.10.0000.01117.53
8.1.00.0030.01117.48
8.0.300.0060.00318.77
8.0.290.0000.00917.16
8.0.280.0000.00918.55
8.0.270.0000.00917.17
8.0.260.0000.00816.78
8.0.250.0060.00317.01
8.0.240.0070.00317.07
8.0.230.0060.00316.94
8.0.220.0000.00916.96
8.0.210.0030.00616.85
8.0.200.0040.00417.03
8.0.190.0070.00716.90
8.0.180.0050.00517.00
8.0.170.0080.00317.00
8.0.160.0030.00616.95
8.0.150.0030.00716.96
8.0.140.0040.00816.86
8.0.130.0000.00713.42
8.0.120.0000.00916.84
8.0.110.0030.00616.94
8.0.100.0000.00916.77
8.0.90.0000.00916.95
8.0.80.0100.01416.85
8.0.70.0030.00716.95
8.0.60.0000.01017.01
8.0.50.0030.00616.98
8.0.30.0090.01217.22
8.0.20.0110.01017.40
8.0.10.0030.00717.07
8.0.00.0060.01416.70
7.4.330.0000.00715.00
7.4.320.0030.00616.48
7.4.300.0040.00416.59
7.4.290.0030.00616.64
7.4.280.0030.00616.63
7.4.270.0050.00516.65
7.4.260.0030.00716.59
7.4.250.0000.00916.36
7.4.240.0020.00816.56
7.4.230.0000.00916.57
7.4.220.0060.01616.66
7.4.210.0110.00616.60
7.4.200.0000.00916.61
7.4.190.0040.00416.55
7.4.160.0000.01916.47
7.4.150.0130.01317.40
7.4.140.0090.01417.86
7.4.130.0070.01616.60
7.4.120.0100.01216.62
7.4.110.0060.01316.58
7.4.100.0130.01016.43
7.4.90.0130.00716.40
7.4.80.0070.01319.39
7.4.70.0070.01316.34
7.4.60.0130.00616.46
7.4.50.0000.00916.46
7.4.40.0060.00922.77
7.4.30.0110.01416.50
7.4.00.0070.01214.94
7.3.330.0030.00313.21
7.3.320.0000.00713.17
7.3.310.0000.01016.14
7.3.300.0000.00916.38
7.3.290.0070.01016.29
7.3.280.0150.00816.28
7.3.270.0120.00817.40
7.3.260.0100.01016.65
7.3.250.0050.01716.36
7.3.240.0100.01016.32
7.3.230.0070.01316.39
7.3.210.0070.01416.37
7.3.200.0090.01519.39
7.3.190.0160.00716.27
7.3.180.0120.00616.29
7.3.170.0090.00916.40
7.3.160.0040.01516.47
7.3.120.0100.01014.84
7.3.110.0090.01114.58
7.3.100.0150.00514.81
7.3.90.0080.00814.88
7.3.80.0080.01214.84
7.3.70.0050.01314.76
7.3.60.0050.01014.88
7.3.50.0100.01014.82
7.3.40.0050.01414.69
7.3.30.0020.01214.60
7.3.20.0050.01116.56
7.3.10.0050.01416.69
7.3.00.0080.01016.47
7.2.330.0100.01016.75
7.2.320.0090.01316.73
7.2.310.0060.01616.59
7.2.300.0070.01416.72
7.2.290.0120.01216.29
7.2.250.0080.01314.95
7.2.240.0110.01115.08
7.2.230.0100.00914.80
7.2.220.0060.01615.20
7.2.210.0070.00914.84
7.2.200.0060.00715.12
7.2.190.0000.01714.99
7.2.180.0050.01314.87
7.2.170.0050.00915.10
7.2.60.0130.01516.50
7.2.00.0040.01119.50
7.1.330.0030.01315.69
7.1.320.0060.00816.03
7.1.310.0030.01315.72
7.1.300.0070.01215.76
7.1.290.0070.01215.86
7.1.280.0030.00915.69
7.1.270.0100.00515.76
7.1.260.0050.01215.79
7.1.200.0060.00915.94
7.1.100.0290.00718.10
7.1.70.0050.00516.98
7.1.60.0140.01419.82
7.1.50.0070.00716.87
7.1.00.0100.06322.44
7.0.200.0030.00716.88
7.0.140.0100.07022.21
7.0.60.0000.04719.89
7.0.50.0030.08017.82
7.0.40.0000.05320.08
7.0.30.0230.04720.12
7.0.20.0230.07020.02
7.0.10.0370.06720.09
7.0.00.0030.04320.00
5.6.280.0030.07321.14
5.6.210.0100.05720.50
5.6.200.0130.08018.17
5.6.190.0070.05720.41
5.6.180.3830.03720.77
5.6.170.0200.05720.45
5.6.160.0130.08320.52
5.6.150.0100.05318.19
5.6.140.0030.05018.18
5.6.130.0070.08318.08
5.6.120.0130.08021.13
5.6.110.0130.08021.01
5.6.100.0070.08721.04
5.6.90.0200.08021.05
5.6.80.0070.06320.37
5.6.70.0130.03720.52
5.5.350.0370.06320.40
5.5.340.0070.03717.91
5.5.330.0100.06720.08
5.5.320.0200.07020.20
5.5.310.0300.06720.13
5.5.300.0130.03317.96
5.5.290.0000.05017.95
5.5.280.0070.08320.81
5.5.270.0070.05320.95
5.5.260.0100.08320.64
5.5.250.0100.07020.57
5.5.240.0100.08320.26
5.4.450.0500.06319.55
5.4.440.0700.07019.52
5.4.430.0830.06019.32
5.4.420.0600.06319.48
5.4.410.0300.05019.16
5.4.400.0330.05318.61
5.4.390.0500.07018.61
5.4.380.0270.06018.74
5.4.370.0230.04718.65
5.4.360.0170.05018.56
5.4.350.0070.04311.97
5.4.340.0040.04311.96
5.4.320.0070.04512.45
5.4.310.0070.04912.45
5.4.300.0040.04012.45
5.4.290.0070.03912.45
5.4.280.0060.03912.35
5.4.270.0040.04012.35
5.4.260.0070.03912.35
5.4.250.0100.05318.93
5.4.240.0130.07318.83
5.4.230.0070.06319.04
5.4.220.0000.06318.69
5.4.210.0030.06018.68
5.4.200.0030.06018.98
5.4.190.0030.06018.93
5.4.180.0130.07318.89
5.4.170.0130.05318.91
5.4.160.0170.07319.00
5.4.150.0130.05719.00
5.4.140.0030.07716.30
5.4.130.0130.05016.39
5.4.120.0130.07316.42
5.4.110.0130.04716.29
5.4.100.0130.04716.23
5.4.90.0100.05716.25
5.4.80.0100.05016.44
5.4.70.0100.05016.33
5.4.60.0000.06016.32
5.4.50.0000.05716.22
5.4.40.0130.04316.23
5.4.30.0130.04716.21
5.4.20.0070.06716.32
5.4.10.0030.06016.45
5.4.00.0030.05015.74
5.3.290.0070.04012.80
5.3.280.0070.06014.59
5.3.270.0030.05714.39
5.3.260.0030.07014.53
5.3.250.0100.07314.47
5.3.240.0170.06314.57
5.3.230.0200.06014.61
5.3.220.0200.07014.66
5.3.210.0030.05714.40
5.3.200.0070.06014.34
5.3.190.0100.05714.57
5.3.180.0130.07014.57
5.3.170.0070.05014.26
5.3.160.0000.05714.45
5.3.150.0000.06014.57
5.3.140.0070.05014.41
5.3.130.0030.07314.64
5.3.120.0130.05014.46
5.3.110.0100.05314.32
5.3.100.0030.05314.04
5.3.90.0100.04714.02
5.3.80.0030.05314.01
5.3.70.0030.05314.03
5.3.60.0000.07714.05
5.3.50.0030.06013.95
5.3.40.0070.05013.84
5.3.30.0000.05013.84
5.3.20.0100.04313.90
5.3.10.0030.05013.65
5.3.00.0030.05313.71
5.2.170.0030.04011.18
5.2.160.0130.03011.18
5.2.150.0030.04310.80
5.2.140.0070.04011.07
5.2.130.0070.04710.94
5.2.120.0000.04011.04
5.2.110.0000.04310.89
5.2.100.0070.03711.09
5.2.90.0100.03310.95
5.2.80.0030.04011.05
5.2.70.0000.04711.13
5.2.60.0070.06010.89
5.2.50.0070.03710.84
5.2.40.0070.03710.91
5.2.30.0000.06310.66
5.2.20.0100.03710.93
5.2.10.0070.04310.61
5.2.00.0100.04710.73
5.1.60.0030.0309.75
5.1.50.0030.03310.02
5.1.40.0030.0339.81
5.1.30.0030.03710.30
5.1.20.0130.02710.24
5.1.10.0000.0409.99
5.1.00.0030.0339.96
5.0.50.0070.0238.63
5.0.40.0100.0278.28
5.0.30.0000.0438.23
5.0.20.0000.0278.32
5.0.10.0000.0308.07
5.0.00.0030.0408.05
4.4.90.0030.0206.03
4.4.80.0000.0336.01
4.4.70.0000.0235.82
4.4.60.0000.0305.85
4.4.50.0100.0206.54
4.4.40.0100.0236.54
4.4.30.0030.0206.54
4.4.20.0000.0236.54
4.4.10.0030.0206.54
4.4.00.0030.0336.54
4.3.110.0030.0276.54
4.3.100.0100.0136.54
4.3.90.0100.0106.54
4.3.80.0030.0336.54
4.3.70.0000.0206.54
4.3.60.0030.0276.54
4.3.50.0030.0306.54
4.3.40.0070.0276.54
4.3.30.0030.0206.54
4.3.20.0030.0206.54
4.3.10.0000.0236.54
4.3.00.0130.0208.38

preferences:
43.83 ms | 401 KiB | 5 Q