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)
5.4.320.0070.04212.49
5.4.310.0080.04412.49
5.4.300.0050.04612.49
5.4.290.0070.04512.49
5.4.280.0080.03812.39
5.4.270.0050.03812.39
5.4.260.0070.03812.38
5.4.250.0070.03912.38
5.4.240.0050.04612.38
5.4.230.0050.03812.37
5.4.220.0070.04012.37
5.4.210.0050.04412.37
5.4.200.0090.04312.37
5.4.190.0060.04212.36
5.4.180.0050.03612.36
5.4.170.0070.04212.37
5.4.160.0070.03612.36
5.4.150.0050.03812.36
5.4.140.0090.03512.05
5.4.130.0080.03512.03
5.4.120.0090.03912.00
5.4.110.0070.03712.00
5.4.100.0070.03512.00
5.4.90.0070.03811.99
5.4.80.0070.04511.99
5.4.70.0080.04111.99
5.4.60.0060.03811.99
5.4.50.0070.03811.99
5.4.40.0090.03511.98
5.4.30.0070.03911.98
5.4.20.0050.04111.97
5.4.10.0070.03611.98
5.4.00.0050.03811.47
5.3.290.0100.03812.80
5.3.280.0070.04312.71
5.3.270.0080.04912.73
5.3.260.0070.04112.72
5.3.250.0070.03812.72
5.3.240.0070.03812.72
5.3.230.0070.04112.71
5.3.220.0040.03912.68
5.3.210.0050.04312.68
5.3.200.0090.04012.68
5.3.190.0050.04112.68
5.3.180.0040.04312.67
5.3.170.0070.03912.67
5.3.160.0080.04112.67
5.3.150.0090.03912.67
5.3.140.0080.04112.66
5.3.130.0060.04212.66
5.3.120.0100.04212.66
5.3.110.0070.04312.66
5.3.100.0090.04212.12
5.3.90.0110.06712.08
5.3.80.0120.05312.08
5.3.70.0090.04312.08
5.3.60.0100.04112.06
5.3.50.0110.04312.00
5.3.40.0090.04312.00
5.3.30.0110.04011.95
5.3.20.0080.04311.71
5.3.10.0090.04811.67
5.3.00.0090.04211.67
5.2.170.0070.0369.16
5.2.160.0060.0349.16
5.2.150.0050.0389.16
5.2.140.0080.0399.16
5.2.130.0070.0399.12
5.2.120.0050.0349.12
5.2.110.0050.0309.13
5.2.100.0040.0319.13
5.2.90.0040.0369.12
5.2.80.0090.0329.12
5.2.70.0050.0309.12
5.2.60.0050.0309.07
5.2.50.0060.0339.04
5.2.40.0070.0349.01
5.2.30.0080.0328.99
5.2.20.0040.0328.98
5.2.10.0050.0308.90
5.2.00.0040.0348.76
5.1.60.0060.0268.05
5.1.50.0040.0308.05
5.1.40.0040.0328.03
5.1.30.0040.0348.38
5.1.20.0040.0328.40
5.1.10.0110.0248.13
5.1.00.0070.0258.12
5.0.50.0040.0236.60
5.0.40.0050.0186.46
5.0.30.0040.0306.28
5.0.20.0040.0186.25
5.0.10.0040.0196.22
5.0.00.0030.0356.21
4.4.90.0020.0204.78
4.4.80.0040.0144.76
4.4.70.0020.0164.76
4.4.60.0030.0144.76
4.4.50.0020.0164.77
4.4.40.0020.0264.71
4.4.30.0020.0164.76
4.4.20.0040.0164.85
4.4.10.0020.0184.85
4.4.00.0050.0244.76
4.3.110.0040.0174.67
4.3.100.0040.0174.66
4.3.90.0020.0164.64
4.3.80.0050.0274.59
4.3.70.0040.0164.63
4.3.60.0020.0174.63
4.3.50.0050.0154.63
4.3.40.0030.0254.54
4.3.30.0040.0203.28
4.3.20.0040.0203.25
4.3.10.0010.0203.22
4.3.00.0130.0307.79

preferences:
145.45 ms | 1394 KiB | 7 Q