3v4l.org

run code in 300+ PHP versions simultaneously
<?php // 2 character salt if (CRYPT_STD_DES == 1) { echo "Standard DES: ".crypt('something','st')."\n<br>"; } else { echo "Standard DES not supported.\n<br>"; } // 4 character salt if (CRYPT_EXT_DES == 1) { echo "Extended DES: ".crypt('something','_S4..some')."\n<br>"; } else { echo "Extended DES not supported.\n<br>"; } // 12 character salt starting with $1$ if (CRYPT_MD5 == 1) { echo "MD5: ".crypt('something','$1$somethin$')."\n<br>"; } else { echo "MD5 not supported.\n<br>"; } // Salt starting with $2a$. The two digit cost parameter: 09. 22 characters if (CRYPT_BLOWFISH == 1) { echo "Blowfish: ".crypt('something','$2a$09$anexamplestringforsalt$')."\n<br>"; } else { echo "Blowfish DES not supported.\n<br>"; } // 16 character salt starting with $5$. The default number of rounds is 5000. if (CRYPT_SHA256 == 1) { echo "SHA-256: ".crypt('something','$5$rounds=5000$anexamplestringforsalt$')."\n<br>"; } else { echo "SHA-256 not supported.\n<br>"; } // 16 character salt starting with $5$. The default number of rounds is 5000. if (CRYPT_SHA512 == 1) { echo "SHA-512: ".crypt('something','$6$rounds=5000$anexamplestringforsalt$'); } else { echo "SHA-512 not supported."; } ?>

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.06318.43
8.3.50.0070.07416.50
8.3.40.0100.06018.70
8.3.30.0070.06219.10
8.3.20.0030.03420.16
8.3.10.0070.03122.09
8.3.00.0030.03422.47
8.2.180.0030.08216.50
8.2.170.0100.06122.96
8.2.160.0100.05919.34
8.2.150.0090.02824.18
8.2.140.0060.03224.66
8.2.130.0090.02826.16
8.2.120.0030.03519.36
8.2.110.0090.03121.12
8.2.100.0100.03717.97
8.2.90.0060.03519.35
8.2.80.0040.03918.21
8.2.70.0070.03617.50
8.2.60.0070.03617.50
8.2.50.0000.04117.63
8.2.40.0070.04017.62
8.2.30.0030.03817.77
8.2.20.0030.03817.74
8.2.10.0000.04117.80
8.2.00.0030.03817.70
8.1.270.0070.03122.14
8.1.260.0060.03126.35
8.1.250.0070.03028.09
8.1.240.0030.03622.46
8.1.230.0030.04321.10
8.1.220.0060.03617.79
8.1.210.0100.03218.84
8.1.200.0060.03617.36
8.1.190.0000.04317.35
8.1.180.0060.03518.10
8.1.170.0060.03618.85
8.1.160.0030.03818.95
8.1.150.0000.04118.53
8.1.140.0030.03817.34
8.1.130.0070.03817.78
8.1.120.0030.03717.47
8.1.110.0000.04217.46
8.1.100.0030.03817.44
8.1.90.0030.03717.41
8.1.80.0060.03517.44
8.1.70.0070.03417.40
8.1.60.0030.04017.61
8.1.50.0030.03817.54
8.1.40.0060.03617.52
8.1.30.0030.03817.55
8.1.20.0030.03817.63
8.1.10.0000.04117.43
8.1.00.0030.04017.48
8.0.300.0090.03220.02
8.0.290.0000.04216.88
8.0.280.0070.03418.14
8.0.270.0030.03918.14
8.0.260.0070.03316.93
8.0.250.0000.04016.93
8.0.240.0000.04016.95
8.0.230.0070.03417.04
8.0.220.0000.04116.98
8.0.210.0000.04216.88
8.0.200.0000.04016.99
8.0.190.0030.04017.02
8.0.180.0030.03717.00
8.0.170.0030.03816.89
8.0.160.0060.03616.92
8.0.150.0060.03516.94
8.0.140.0000.04216.92
8.0.130.0000.04013.39
8.0.120.0030.03916.82
8.0.110.0070.03416.97
8.0.100.0030.04017.01
8.0.90.0030.03816.98
8.0.80.0060.06216.89
8.0.70.0030.03816.94
8.0.60.0000.04216.96
8.0.50.0000.04116.77
8.0.30.0130.05617.08
8.0.20.0140.06017.40
8.0.10.0000.04116.98
8.0.00.0130.05916.86
7.4.330.0000.03915.00
7.4.320.0030.03716.38
7.4.300.0000.04016.46
7.4.290.0030.03816.54
7.4.280.0100.03316.44
7.4.270.0000.04016.43
7.4.260.0030.03816.50
7.4.250.0040.03916.45
7.4.240.0020.03916.52
7.4.230.0030.03716.45
7.4.220.0130.05116.51
7.4.210.0100.06116.58
7.4.200.0060.03516.63
7.4.190.0030.03716.68
7.4.160.0100.05816.49
7.4.150.0140.05117.40
7.4.140.0100.05817.86
7.4.130.0140.05316.46
7.4.120.0110.05516.46
7.4.110.0070.06016.26
7.4.100.0100.06116.45
7.4.90.0070.06016.42
7.4.80.0130.05319.39
7.4.70.0160.05816.67
7.4.60.0030.06216.58
7.4.50.0030.04916.48
7.4.40.0100.04122.77
7.4.30.0060.05916.61
7.4.10.0100.05416.32
7.4.00.0080.04815.84
7.3.330.0030.03613.11
7.3.320.0030.03613.06
7.3.310.0030.03716.19
7.3.300.0030.03716.21
7.3.290.0130.05816.40
7.3.280.0090.06716.32
7.3.270.0140.05317.40
7.3.260.0100.05816.31
7.3.250.0110.05716.62
7.3.240.0060.06116.24
7.3.230.0030.06516.41
7.3.210.0100.06216.32
7.3.200.0030.07019.39
7.3.190.0130.06616.33
7.3.180.0160.04816.25
7.3.170.0000.06616.48
7.3.160.0100.06316.29
7.3.130.0000.05516.28
7.3.120.0060.04615.74
7.3.110.0030.05216.29
7.3.100.0070.05416.34
7.3.90.0030.05116.44
7.3.80.0100.04216.52
7.3.70.0100.03916.36
7.3.60.0030.05616.38
7.3.50.0030.04216.36
7.3.40.0070.04316.38
7.3.30.0030.04216.39
7.3.20.0040.04918.23
7.3.10.0030.04517.91
7.3.00.0100.04417.95
7.2.330.0160.05116.75
7.2.320.0100.06216.44
7.2.310.0210.04516.41
7.2.300.0120.05516.51
7.2.290.0060.05916.80
7.2.260.0070.05916.70
7.2.250.0130.05316.29
7.2.240.0000.05516.43
7.2.230.0100.04916.74
7.2.220.0100.05316.39
7.2.210.0070.04416.67
7.2.200.0070.04716.60
7.2.190.0070.04416.56
7.2.180.0070.03916.64
7.2.170.0070.04716.44
7.2.160.0030.05116.67
7.2.150.0030.05518.26
7.2.140.0030.05518.38
7.2.130.0070.04418.27
7.2.120.0070.04018.33
7.2.110.0030.04518.46
7.2.100.0000.04618.50
7.2.90.0030.04618.33
7.2.80.0070.04318.29
7.2.70.0130.05318.12
7.2.60.0030.04817.69
7.2.50.0070.04018.50
7.2.40.0000.05418.51
7.2.30.0000.05518.45
7.2.20.0100.03918.50
7.2.10.0100.04218.38
7.2.00.0060.04918.93
7.1.330.0130.04317.37
7.1.320.0070.04917.33
7.1.310.0100.04917.20
7.1.300.0100.04317.25
7.1.290.0070.03817.27
7.1.280.0030.04517.23
7.1.270.0000.05317.28
7.1.260.0060.04217.45
7.1.250.0100.04317.23
7.1.240.0030.04517.23
7.1.230.0060.04417.27
7.1.220.0000.04917.24
7.1.210.0070.04317.08
7.1.200.0020.05116.63
7.1.190.0070.04717.16
7.1.180.0000.04817.31
7.1.170.0070.04317.41
7.1.160.0030.05117.21
7.1.150.0030.04517.12
7.1.140.0000.05117.25
7.1.130.0030.04617.21
7.1.120.0030.04917.23
7.1.110.0000.05417.33
7.1.100.0050.04617.79
7.1.90.0000.04917.09
7.1.80.0160.03617.13
7.1.70.0070.05617.12
7.1.60.0080.06818.49
7.1.50.0120.06917.10
7.1.40.0000.06117.11
7.1.30.0000.04617.43
7.1.20.0030.04417.24
7.1.10.0000.04817.39
7.1.00.0030.08319.84
7.0.330.0000.05117.07
7.0.320.0000.04717.06
7.0.310.0030.05316.93
7.0.300.0060.04516.88
7.0.290.0070.04416.92
7.0.280.0060.04716.89
7.0.270.0070.04716.84
7.0.260.0000.04816.84
7.0.250.0030.04517.09
7.0.240.0030.04917.01
7.0.230.0030.05216.82
7.0.220.0070.04316.99
7.0.210.0030.04716.88
7.0.200.0070.04116.92
7.0.190.0100.03916.96
7.0.180.0030.04517.05
7.0.170.0000.04516.96
7.0.160.0100.03816.97
7.0.150.0030.04617.05
7.0.140.0050.08319.53
7.0.130.0070.04117.02
7.0.120.0030.04717.02
7.0.110.0030.04416.97
7.0.100.0030.04616.89
7.0.90.0070.04717.08
7.0.80.0100.04217.02
7.0.70.0060.04817.03
7.0.60.0080.09018.53
7.0.50.0050.07117.53
7.0.40.0020.06617.57
7.0.30.0170.06617.49
7.0.20.0200.08417.51
7.0.10.0180.07417.54
7.0.00.0050.07917.54
5.6.400.0100.03915.86
5.6.390.0070.04615.77
5.6.380.0030.04816.00
5.6.370.0030.04916.01
5.6.360.0100.04315.75
5.6.350.0000.04916.07
5.6.340.0030.04915.79
5.6.330.0100.04816.13
5.6.320.0070.05015.71
5.6.310.0060.04815.92
5.6.300.0030.05416.09
5.6.290.0100.04115.61
5.6.280.0030.08818.48
5.6.270.0040.04615.64
5.6.260.0060.04215.89
5.6.250.0030.04616.09
5.6.240.0060.04215.87
5.6.230.0070.04715.73
5.6.220.0070.04415.91
5.6.210.0120.08418.32
5.6.200.0130.08517.08
5.6.190.0050.06518.24
5.6.180.1750.06418.24
5.6.170.0150.06318.20
5.6.160.0020.08918.12
5.6.150.0030.06417.02
5.6.140.0070.09216.92
5.6.130.0050.08717.07
5.6.120.0080.07318.55
5.6.110.0070.08018.52
5.6.100.0130.08518.48
5.6.90.0030.06218.50
5.6.80.0050.08917.99
5.6.70.0230.07918.12
5.6.60.0060.05515.88
5.6.50.0100.05216.01
5.6.40.0060.04815.55
5.6.30.0030.05815.84
5.6.20.0060.05715.83
5.6.10.0070.04615.59
5.6.00.0150.05215.77
5.5.380.0130.04215.66
5.5.370.0030.04615.83
5.5.360.0060.04415.66
5.5.350.0080.05918.15
5.5.340.0030.06716.86
5.5.330.0080.08618.27
5.5.320.0170.07318.03
5.5.310.0180.08717.87
5.5.300.0070.06516.86
5.5.290.0130.06916.91
5.5.280.0030.09718.46
5.5.270.0030.09318.18
5.5.260.0100.09118.39
5.5.250.0080.08418.25
5.5.240.0070.09017.96
5.5.230.0030.04815.60
5.5.220.0000.05215.68
5.5.210.0070.04215.84
5.5.200.0000.05215.63
5.5.190.0030.04515.65
5.5.180.0100.03915.83
5.5.170.0030.04515.90
5.5.160.0000.05215.75
5.5.150.0030.04815.69
5.5.140.0030.04615.80
5.5.130.0100.04815.70
5.5.120.0000.06115.81
5.5.110.0000.04915.54
5.5.100.0060.04215.83
5.5.90.0000.04815.83
5.5.80.0070.04015.63
5.5.70.0030.05415.89
5.5.60.0130.04915.73
5.5.50.0000.04815.56
5.5.40.0100.04015.73
5.5.30.0100.05115.76
5.5.20.0030.04715.89
5.5.10.0070.04115.91
5.5.00.0130.03515.49
5.4.450.0430.07716.08
5.4.440.0370.08015.94
5.4.430.0470.07516.07
5.4.420.0030.07716.01
5.4.410.0430.08216.09
5.4.400.0950.02215.68
5.4.390.1720.02315.53
5.4.380.0170.08415.59
5.4.370.0170.07415.61
5.4.360.0100.07815.68
5.4.350.0080.07515.62
5.4.340.0170.07215.54
5.4.330.0060.04512.39
5.4.320.0050.06412.59
5.4.310.0020.06512.47
5.4.300.0050.05712.46
5.4.290.0080.06012.46
5.4.280.0060.05612.40
5.4.270.0060.05912.52
5.4.260.0120.08115.85
5.4.250.0180.07515.69
5.4.240.0050.08015.91
5.4.230.0130.08015.72
5.4.220.0050.09315.80
5.4.210.0000.09615.66
5.4.200.0070.08515.70
5.4.190.0030.09315.76
5.4.180.0030.09315.57
5.4.170.0120.07115.69
5.4.160.0050.07915.75
5.4.150.0130.07515.62
5.4.140.0100.08214.46
5.4.130.0050.07814.62
5.4.120.0100.07014.38
5.4.110.0070.07614.60
5.4.100.0030.09314.49
5.4.90.0050.07214.37
5.4.80.0070.07314.57
5.4.70.0100.07114.52
5.4.60.0070.07514.49
5.4.50.0070.07714.46
5.4.40.0070.08214.43
5.4.30.0130.06714.39
5.4.20.0070.07414.51
5.4.10.0120.07714.45
5.4.00.0050.08414.29
5.3.290.0060.05912.95
5.3.280.0070.08213.69
5.3.270.0050.08013.70
5.3.260.0100.07613.82
5.3.250.0070.09413.86
5.3.240.0080.07213.80
5.3.230.0060.07913.72
5.3.220.0070.07713.76
5.3.210.0050.08013.72
5.3.200.0050.07413.55
5.3.190.0030.07913.61
5.3.180.0100.07613.79
5.3.170.0130.08213.90
5.3.160.0030.08213.83
5.3.150.0030.08513.79
5.3.140.0130.08413.67
5.3.130.0050.09013.78
5.3.120.0070.08213.64
5.3.110.0100.08113.79
5.3.100.0070.07913.54
5.3.90.0080.07213.55
5.3.80.0080.07713.43
5.3.70.0070.08713.38
5.3.60.0090.08513.45
5.3.50.0120.08313.41
5.3.40.0050.09113.43
5.3.30.0120.08313.38
5.3.20.0070.08213.27
5.3.10.0100.07313.17
5.3.00.0050.07913.29
5.2.170.0070.04711.43
5.2.160.0100.04311.11
5.2.150.0200.04711.34
5.2.140.0100.05311.33
5.2.130.0100.05311.20
5.2.120.0170.03311.40
5.2.110.0200.04311.38
5.2.100.0100.05711.29
5.2.90.0130.05711.44
5.2.80.0130.04311.29
5.2.70.0100.04711.43
5.2.60.0100.05311.39
5.2.50.0130.05311.23
5.2.40.0170.03711.20
5.2.30.0170.05311.16
5.2.20.0130.04311.16
5.2.10.0000.04311.13
5.2.00.0000.04311.08
5.1.60.0030.03710.08
5.1.50.0030.03310.15
5.1.40.0000.04010.31
5.1.30.0100.03010.69
5.1.20.0070.03710.61
5.1.10.0000.04310.41
5.1.00.0200.03710.35
5.0.50.0000.0338.66
5.0.40.0070.0278.52
5.0.30.0070.0378.18
5.0.20.0000.0308.34
5.0.10.0030.0408.21
5.0.00.0030.0438.32
4.4.90.0070.0237.22
4.4.80.0030.0337.22
4.4.70.0070.0277.22
4.4.60.0030.0207.22
4.4.50.0070.0277.22
4.4.40.0070.0307.22
4.4.30.0000.0237.22
4.4.20.0000.0237.22
4.4.10.0000.0237.22
4.4.00.0030.0337.22
4.3.110.0070.0207.22
4.3.100.0030.0207.22
4.3.90.0070.0177.22
4.3.80.0030.0377.22
4.3.70.0030.0237.22
4.3.60.0030.0237.22
4.3.50.0000.0337.22
4.3.40.0030.0407.22
4.3.30.0030.0377.22
4.3.20.0030.0237.22
4.3.10.0030.0237.22
4.3.00.0130.0206.97

preferences:
72.28 ms | 400 KiB | 5 Q