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.40.0170.06318.81
8.3.30.0030.06620.33
8.3.20.0070.03120.27
8.3.10.0070.03021.09
8.3.00.0070.03122.37
8.2.170.0100.06422.96
8.2.160.0100.06620.46
8.2.150.0070.03124.18
8.2.140.0030.03524.66
8.2.130.0090.02826.16
8.2.120.0090.02821.20
8.2.110.0030.03720.48
8.2.100.0100.03617.65
8.2.90.0030.03819.26
8.2.80.0000.04317.97
8.2.70.0070.03617.50
8.2.60.0030.03817.80
8.2.50.0100.03218.07
8.2.40.0030.03818.28
8.2.30.0030.03821.35
8.2.20.0030.03817.74
8.2.10.0070.03517.76
8.2.00.0100.03217.77
8.1.270.0030.03423.99
8.1.260.0060.03126.35
8.1.250.0030.03428.09
8.1.240.0030.03622.50
8.1.230.0070.04021.15
8.1.220.0030.03918.77
8.1.210.0060.03518.87
8.1.200.0030.03917.48
8.1.190.0030.03817.50
8.1.180.0000.04218.10
8.1.170.0030.03818.72
8.1.160.0060.03518.82
8.1.150.0000.04118.54
8.1.140.0000.04117.36
8.1.130.0060.03417.84
8.1.120.0060.03617.51
8.1.110.0030.03817.46
8.1.100.0000.04317.52
8.1.90.0000.04117.38
8.1.80.0030.03817.38
8.1.70.0070.03317.45
8.1.60.0100.03317.51
8.1.50.0000.04217.58
8.1.40.0070.04017.50
8.1.30.0030.03817.66
8.1.20.0030.04017.63
8.1.10.0000.04217.53
8.1.00.0040.03917.44
8.0.300.0030.03720.10
8.0.290.0030.03817.29
8.0.280.0060.03518.48
8.0.270.0030.03717.29
8.0.260.0060.03416.87
8.0.250.0030.03716.95
8.0.240.0030.03916.91
8.0.230.0060.03617.02
8.0.220.0030.03716.89
8.0.210.0000.04116.89
8.0.200.0070.03617.06
8.0.190.0030.03817.06
8.0.180.0000.04216.96
8.0.170.0000.04116.96
8.0.160.0070.03416.98
8.0.150.0130.03616.86
8.0.140.0000.04116.98
8.0.130.0030.03613.38
8.0.120.0060.03616.88
8.0.110.0000.04116.85
8.0.100.0040.03917.00
8.0.90.0030.03817.00
8.0.80.0160.05217.00
8.0.70.0030.03817.04
8.0.60.0060.03516.95
8.0.50.0000.04116.81
8.0.30.0140.05617.08
8.0.20.0120.05717.40
8.0.10.0070.03416.86
8.0.00.0090.06316.81
7.4.330.0030.03516.77
7.4.320.0070.03416.50
7.4.300.0030.03716.46
7.4.290.0030.03716.56
7.4.280.0030.03816.58
7.4.270.0000.04116.54
7.4.260.0030.03913.18
7.4.250.0030.03816.43
7.4.240.0000.04116.47
7.4.230.0030.03716.45
7.4.220.0130.06416.36
7.4.210.0070.06216.53
7.4.200.0000.04116.27
7.4.190.0030.03816.65
7.4.160.0210.06416.40
7.4.150.0060.06117.40
7.4.140.0110.05517.86
7.4.130.0080.05916.55
7.4.120.0130.05516.31
7.4.110.0130.05316.54
7.4.100.0200.06016.73
7.4.90.0060.06316.57
7.4.80.0160.05219.39
7.4.70.0080.05816.62
7.4.60.0100.06116.43
7.4.50.0100.04616.39
7.4.40.0070.04322.77
7.4.30.0060.05916.60
7.4.00.0100.04614.98
7.3.330.0000.04013.29
7.3.320.0060.03213.33
7.3.310.0090.03416.42
7.3.300.0030.03816.34
7.3.290.0130.06216.27
7.3.280.0100.06816.37
7.3.270.0180.05017.40
7.3.260.0080.06218.24
7.3.250.0130.05416.28
7.3.240.0070.07316.57
7.3.230.0100.05716.52
7.3.210.0100.05616.52
7.3.200.0100.07119.39
7.3.190.0100.06916.75
7.3.180.0100.05616.14
7.3.170.0100.05516.54
7.3.160.0090.06916.43
7.3.120.0080.04814.85
7.3.110.0060.05115.06
7.3.100.0080.05014.85
7.3.90.0080.04514.92
7.3.80.0040.04914.93
7.3.70.0050.04614.94
7.3.60.0050.04714.72
7.3.50.0030.04914.93
7.3.40.0060.04714.76
7.3.30.0060.04514.73
7.3.20.0040.04516.73
7.3.10.0030.04516.57
7.3.00.0030.04716.64
7.2.330.0120.06016.75
7.2.320.0130.06616.59
7.2.310.0120.05716.73
7.2.300.0070.05916.38
7.2.290.0100.07016.44
7.2.250.0050.05515.16
7.2.240.0090.05214.96
7.2.230.0110.04415.22
7.2.220.0050.04914.99
7.2.210.0080.04615.04
7.2.200.0040.04715.08
7.2.190.0030.05015.09
7.2.180.0070.04415.11
7.2.170.0030.04615.02
7.2.130.0160.03817.08
7.2.120.0030.05216.94
7.2.110.0070.04616.82
7.2.100.0030.04716.95
7.2.90.0100.03616.57
7.2.80.0040.04316.93
7.2.70.0130.04416.80
7.2.60.0160.04316.87
7.2.50.0060.04817.16
7.2.40.0070.04216.73
7.2.30.0160.04516.84
7.2.20.0070.04816.75
7.2.10.0100.05216.89
7.2.00.0100.05118.08
7.1.330.0070.04215.87
7.1.320.0060.04815.82
7.1.310.0080.05015.72
7.1.300.0020.04415.78
7.1.290.0030.04415.74
7.1.280.0090.04215.77
7.1.270.0030.04415.66
7.1.260.0060.04015.70
7.1.250.0000.04815.73
7.1.200.0130.03815.77
7.1.100.0070.04118.16
7.1.70.0060.03916.86
7.1.60.0130.06319.17
7.1.50.0200.03934.82
7.1.00.0030.06722.46
7.0.200.0060.04116.86
7.0.140.0000.12322.01
7.0.100.0130.13320.00
7.0.90.0030.13719.85
7.0.80.0100.07019.92
7.0.70.0030.10719.88
7.0.60.0000.08319.96
7.0.50.0170.12320.30
7.0.40.0070.11720.07
7.0.30.0030.12720.08
7.0.20.0030.10320.14
7.0.10.0100.09320.17
7.0.00.0130.11720.20
5.6.250.0130.12720.60
5.6.240.0000.14320.51
5.6.230.0100.13020.56
5.6.220.0070.12720.63
5.6.210.0000.08320.57
5.6.200.0100.13721.09
5.6.190.0000.08321.15
5.6.180.0070.08021.02
5.6.170.0070.13021.08
5.6.160.0000.13021.07
5.6.150.0100.08721.11
5.6.140.0070.11721.04
5.6.130.0100.14321.03
5.6.120.0170.12721.10
5.6.110.0170.10021.08
5.6.100.0100.12021.04
5.6.90.0130.13321.05
5.6.80.0170.12020.37
5.6.70.0170.13320.48
5.6.60.0100.13720.34
5.6.50.0070.13320.50
5.6.40.0070.12020.50
5.6.30.0070.08720.35
5.6.20.0130.08020.43
5.6.10.0030.13020.34
5.6.00.0030.14020.45
5.5.380.0000.08720.46
5.5.370.0100.10320.39
5.5.360.0030.12320.36
5.5.350.0030.13320.39
5.5.340.0000.09720.84
5.5.330.0200.12320.87
5.5.320.0170.12720.95
5.5.310.0100.12320.91
5.5.300.0030.13320.90
5.5.290.0100.11720.87
5.5.280.0070.13020.96
5.5.270.0170.12320.67
5.5.260.0100.13020.75
5.5.250.0230.11020.73
5.5.240.0030.13020.29
5.5.230.0070.14320.24
5.5.220.0070.07720.33
5.5.210.0100.11020.33
5.5.200.0130.10320.14
5.5.190.0100.12020.25
5.5.180.0230.12020.29
5.5.160.0130.12320.30
5.5.150.0130.08020.26
5.5.140.0130.07720.31
5.5.130.0070.12720.01
5.5.120.0070.06720.18
5.5.110.0100.12720.15
5.5.100.0000.12719.98
5.5.90.0070.13020.13
5.5.80.0030.10720.13
5.5.70.0100.13720.00
5.5.60.0030.12720.13
5.5.50.0100.07720.15
5.5.40.0070.07320.03
5.5.30.0100.06320.08
5.5.20.0170.11719.96
5.5.10.0130.09020.07
5.5.00.0070.07020.11
5.4.450.0130.12319.45
5.4.440.0100.12719.20
5.4.430.0070.13019.48
5.4.420.0000.14019.19
5.4.410.0070.10019.38
5.4.400.0130.11718.98
5.4.390.0130.11319.12
5.4.380.0130.11319.04
5.4.370.0000.09019.29
5.4.360.0170.11319.04
5.4.350.0030.10319.18
5.4.340.0200.11019.18
5.4.320.0170.07719.10
5.4.310.0130.12718.85
5.4.300.0100.13719.15
5.4.290.0130.06019.11
5.4.280.0030.12019.12
5.4.270.0130.11719.09
5.4.260.0030.11019.24
5.4.250.0070.07019.09
5.4.240.0030.12718.86
5.4.230.0070.11718.96
5.4.220.0070.12718.96
5.4.210.0030.14019.08
5.4.200.0070.13319.18
5.4.190.0030.08319.15
5.4.180.0030.13719.03
5.4.170.0330.05018.95
5.4.160.0130.06718.98
5.4.150.0070.12319.07
5.4.140.0070.12316.38
5.4.130.0100.12716.38
5.4.120.0000.09016.35
5.4.110.0030.11016.39
5.4.100.0070.12716.51
5.4.90.0130.11716.47
5.4.80.0030.11316.31
5.4.70.0100.12716.36
5.4.60.0130.11316.39
5.4.50.0030.12316.34
5.4.40.0070.07316.30
5.4.30.0030.11716.25
5.4.20.0030.12016.29
5.4.10.0030.12016.24
5.4.00.0070.11715.78
5.3.290.0200.11014.59
5.3.280.0070.13314.66
5.3.270.0000.07314.58
5.3.260.0000.13014.58
5.3.250.0230.11014.68
5.3.240.0030.07014.67
5.3.230.0030.08714.64
5.3.220.0030.07314.61
5.3.210.0170.11014.48
5.3.200.0100.12714.48
5.3.190.0000.12714.49
5.3.180.0070.09714.56
5.3.170.0100.13714.62
5.3.160.0100.08314.53
5.3.150.0030.10314.48
5.3.140.0030.13014.61
5.3.130.0070.12714.62
5.3.120.0070.13014.57
5.3.110.0070.09014.59
5.3.100.0100.12313.92
5.3.90.0030.07314.04
5.3.80.0030.09713.99
5.3.70.0100.12014.06
5.3.60.0070.07313.92
5.3.50.0070.08014.03
5.3.40.0100.13013.77
5.3.30.0070.11713.95
5.3.20.0070.13013.73
5.3.10.0100.10713.71
5.3.00.0070.07013.68
5.2.170.0000.07011.38
5.2.160.0030.06011.31
5.2.150.0100.05711.09
5.2.140.0000.04311.31
5.2.130.0000.06311.31
5.2.120.0130.05011.15
5.2.110.0030.04011.08
5.2.100.0130.05011.24
5.2.90.0100.05711.11
5.2.80.0100.05311.30
5.2.70.0070.04311.28
5.2.60.0000.06011.09
5.2.50.0030.05011.00
5.2.40.0030.03011.23
5.2.30.0000.06710.99
5.2.20.0100.02711.21
5.2.10.0030.05711.11
5.2.00.0100.05710.82
5.1.60.0130.04710.23
5.1.50.0030.04010.23
5.1.40.0070.04010.21
5.1.30.0070.03310.56
5.1.20.0070.04710.45
5.1.10.0100.05010.34
5.1.00.0030.04710.28
5.0.50.0000.0438.76
5.0.40.0030.0438.63
5.0.30.0030.0678.49
5.0.20.0170.0338.37
5.0.10.0000.0338.45
5.0.00.0100.0638.45
4.4.90.0030.0207.96
4.4.80.0000.0307.96
4.4.70.0000.0377.96
4.4.60.0030.0277.96
4.4.50.0000.0307.96
4.4.40.0030.0507.96
4.4.30.0030.0307.96
4.4.20.0030.0207.96
4.4.10.0000.0407.96
4.4.00.0030.0577.96
4.3.110.0000.0407.96
4.3.100.0000.0377.96
4.3.90.0000.0307.96
4.3.80.0070.0437.96
4.3.70.0030.0177.96
4.3.60.0030.0207.96
4.3.50.0000.0377.96
4.3.40.0070.0477.96
4.3.30.0000.0377.96
4.3.20.0000.0377.96
4.3.10.0030.0307.96
4.3.00.0030.0307.96

preferences:
48.13 ms | 400 KiB | 5 Q