3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (CRYPT_STD_DES == 1) { echo 'Standard DES: ' . crypt('rasmuslerdorf', 'rl') . "\n"; } if (CRYPT_EXT_DES == 1) { echo 'Extended DES: ' . crypt('rasmuslerdorf', '_J9..rasm') . "\n"; } if (CRYPT_MD5 == 1) { echo 'MD5: ' . crypt('rasmuslerdorf', '$1$rasmusle$') . "\n"; } if (CRYPT_BLOWFISH == 1) { echo 'Blowfish: ' . crypt('rasmuslerdorf', '$2a$07$usesomesillystringforsalt$') . "\n"; } if (CRYPT_SHA256 == 1) { echo 'SHA-256: ' . crypt('rasmuslerdorf', '$5$rounds=5000$usesomesillystringforsalt$') . "\n"; } if (CRYPT_SHA512 == 1) { echo 'SHA-512: ' . crypt('rasmuslerdorf', '$6$rounds=5000$usesomesillystringforsalt$') . "\n"; }

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.0.0beta10.0090.03016.68
8.0.0alpha30.0060.04316.70
8.0.0alpha20.0030.04416.81
8.0.0alpha10.0040.03416.79
7.4.90.0060.03216.57
7.4.80.0090.02819.04
7.4.70.0190.01916.36
7.4.60.0140.02316.48
7.4.50.0000.01516.44
7.4.40.0000.03122.27
7.4.30.0040.03316.50
7.4.00.0070.02314.91
7.3.210.0030.03316.59
7.3.200.0090.02719.39
7.3.190.0100.03916.41
7.3.180.0100.02616.54
7.3.170.0070.03116.59
7.3.160.0030.03216.62
7.3.120.0070.02314.59
7.2.330.0120.02816.81
7.2.320.0130.02616.67
7.2.310.0070.04116.42
7.2.300.0070.03116.83
7.2.290.0130.02416.67
7.2.00.0030.02619.71
7.1.100.0060.02117.99
7.1.70.0030.02317.30
7.1.60.0030.05519.40
7.1.50.0030.03316.95
7.1.00.0030.10322.50
7.0.200.0000.02416.73
7.0.140.0030.10022.05
7.0.120.0030.10022.16
7.0.110.0030.10321.97
7.0.100.0100.09021.99
7.0.90.0030.10022.07
7.0.80.0000.10322.23
7.0.70.0030.10022.08
7.0.60.0100.09322.09
7.0.50.0100.09022.12
7.0.40.0070.09322.14
7.0.30.0070.09321.99
7.0.20.0000.08022.20
7.0.10.0000.10322.13
7.0.00.0070.09722.00
5.6.280.0030.10021.06
5.6.260.0030.09720.99
5.6.250.0000.10020.96
5.6.240.0070.09321.13
5.6.230.0130.09021.09
5.6.220.0070.09720.80
5.6.210.0000.09021.00
5.6.200.0070.09720.86
5.6.190.0070.09721.08
5.6.180.0100.08720.85
5.6.170.0030.09720.88
5.6.160.0000.10020.96
5.6.150.0030.08721.08
5.6.140.0030.10020.77
5.6.130.0070.09321.05
5.6.120.0030.10020.77
5.6.110.0000.06720.95
5.6.100.0000.07020.76
5.6.90.0030.06321.08
5.6.80.0000.10020.44
5.6.70.0000.09720.41
5.6.60.0070.09020.20
5.6.50.0070.09320.20
5.6.40.0070.08020.21
5.6.30.0070.09320.39
5.6.20.0030.10020.23
5.6.10.0100.08720.38
5.6.00.0030.09020.17
5.5.380.0000.10017.59
5.5.370.0100.09017.56
5.5.360.0000.08017.43
5.5.350.0030.09317.57
5.5.340.0070.09317.93
5.5.330.0030.09718.18
5.5.320.0070.09717.91
5.5.310.0000.10018.30
5.5.300.0070.09717.90
5.5.290.0000.10317.92
5.5.280.0030.10018.22
5.5.270.0070.09718.14
5.5.260.0000.06018.17
5.5.250.0030.06017.86
5.5.240.0000.06717.31
5.5.230.0030.09717.54
5.5.220.0030.09717.28
5.5.210.0030.09017.69
5.5.200.0000.09717.54
5.5.190.0030.09717.43
5.5.180.0030.09717.18
5.5.160.0000.09717.50
5.5.150.0030.09017.30
5.5.140.0030.09017.53
5.5.130.0000.09317.27
5.5.120.0000.09717.66
5.5.110.0070.08717.25
5.5.100.0030.08717.45
5.5.90.0000.08317.17
5.5.80.0030.09317.33
5.5.70.0000.09717.40
5.5.60.0030.09317.43
5.5.50.0030.09317.16
5.5.40.0000.09317.46
5.5.30.0070.08317.39
5.5.20.0000.09717.16
5.5.10.0100.09017.18
5.5.00.0000.09017.16
5.4.450.0100.09319.36
5.4.440.0030.07719.65
5.4.430.0030.06019.50
5.4.420.0030.06019.59
5.4.410.0070.05719.36
5.4.400.0030.09019.06
5.4.390.0000.10019.09
5.4.380.0070.08719.00
5.4.370.0070.08719.00
5.4.360.0030.09719.02
5.4.350.0000.09719.25
5.4.340.0030.09718.98
5.4.320.0030.09719.03
5.4.310.0030.09718.98
5.4.300.0000.07318.99
5.4.290.0000.09019.00
5.4.280.0070.09319.00
5.4.270.0030.09019.32
5.4.260.0070.08719.29
5.4.250.0030.09319.07
5.4.240.0070.06719.04
5.4.230.0070.09019.05
5.4.220.0030.09319.07
5.4.210.0030.09318.97
5.4.200.0070.09019.13
5.4.190.0000.09719.04
5.4.180.0000.08319.07
5.4.170.0000.09719.04
5.4.160.0030.07718.98
5.4.150.0070.09019.01
5.4.140.0030.09316.53
5.4.130.0070.08716.52
5.4.120.0070.08716.50
5.4.110.0070.09016.19
5.4.100.0070.08716.59
5.4.90.0030.09016.28
5.4.80.0070.08316.41
5.4.70.0070.08716.32
5.4.60.0030.09016.32
5.4.50.0100.08316.55
5.4.40.0070.09016.31
5.4.30.0000.09316.55
5.4.20.0000.09016.45
5.4.10.0000.09716.17
5.4.00.0030.08715.86
5.3.290.0030.09714.52
5.3.280.0000.08314.44
5.3.270.0030.08014.68
5.3.260.0000.10014.55
5.3.250.0030.09314.52
5.3.240.0000.09714.61
5.3.230.0030.07314.50
5.3.220.0100.07014.64
5.3.210.0070.09014.46
5.3.200.0000.09714.55
5.3.190.0000.09314.62
5.3.180.0000.09714.41
5.3.170.0000.09314.64
5.3.160.0000.09314.56
5.3.150.0030.09014.61
5.3.140.0030.07314.62
5.3.130.0030.09314.61
5.3.120.0030.09314.64
5.3.110.0000.09014.63
5.3.100.0000.09714.02
5.3.90.0030.08014.11
5.3.80.0000.09313.91
5.3.70.0070.08714.18
5.3.60.0000.09013.99
5.3.50.0000.08013.93
5.3.40.0000.09314.02
5.3.30.0000.07713.89
5.3.20.0000.09013.79
5.3.10.0000.07313.64
5.3.00.0030.07713.63
5.2.170.0000.04013.12
5.2.160.0000.05313.12
5.2.150.0070.04013.12
5.2.140.0030.04713.12
5.2.130.0000.05713.12
5.2.120.0000.05713.12
5.2.110.0030.05313.12
5.2.100.0030.05313.12
5.2.90.0070.05013.12
5.2.80.0030.05713.12
5.2.70.0030.05713.12
5.2.60.0030.05313.12
5.2.50.0000.05713.12
5.2.40.0000.05713.12
5.2.30.0030.05713.12
5.2.20.0000.04713.12
5.2.10.0030.05313.12
5.2.00.0030.05013.12
5.1.60.0030.04313.12
5.1.50.0100.04013.12
5.1.40.0070.04013.12
5.1.30.0070.04713.12
5.1.20.0070.04313.12
5.1.10.0000.04713.12
5.1.00.0000.05013.12
5.0.50.0000.04013.12
5.0.40.0030.03713.12
5.0.30.0000.06013.12
5.0.20.0000.03313.12
5.0.10.0000.04013.12
5.0.00.0030.05013.12
4.4.90.0000.03313.12
4.4.80.0030.03013.12
4.4.70.0000.03313.12
4.4.60.0000.02713.12
4.4.50.0000.03013.12
4.4.40.0030.04013.12
4.4.30.0030.02713.12
4.4.20.0030.03013.12
4.4.10.0030.03013.12
4.4.00.0000.05013.12
4.3.110.0070.02713.12
4.3.100.0000.03013.12
4.3.90.0030.02713.12
4.3.80.0030.04313.12
4.3.70.0030.02713.12
4.3.60.0000.03013.12
4.3.50.0000.03313.12
4.3.40.0000.04013.12
4.3.30.0000.03313.12
4.3.20.0000.03313.12
4.3.10.0000.03313.12
4.3.00.0070.02013.12