3v4l.org

run code in 300+ PHP versions simultaneously
<?php function hasha($passwordoriginale){ $crypt = md5(sha1(md5(md5(sha1($passwordoriginale))))); $caratteri_disponibili ="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890"; $lunghezza= 22; $salt = ""; for($i = 0; $i<$lunghezza; $i++){ $salt = $salt.substr($caratteri_disponibili,rand(0,strlen($caratteri_disponibili)-1),1); } $newsalt= '$2a$07$'.$salt.'$'; $hashed_password = crypt($crypt,$newsalt); return $hashed_password; } $passworddacrittare = "password"; $passwordcrittata = hasha($passworddacrittare); echo $passwordcrittata; ?>

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)
7.4.10.0130.01314.95
7.4.00.0030.02315.14
7.3.130.0150.00914.79
7.3.120.0100.01414.77
7.3.110.0100.01614.70
7.3.100.0030.01814.59
7.3.90.0070.01415.12
7.3.80.0070.01415.09
7.3.70.0080.01514.93
7.3.60.0060.01515.00
7.3.50.0030.02114.62
7.3.40.0060.01914.86
7.3.30.0060.01614.77
7.3.20.0120.00916.46
7.3.10.0040.01616.89
7.3.00.0050.01616.59
7.2.260.0060.01915.12
7.2.250.0110.01415.22
7.2.240.0030.02015.36
7.2.230.0040.01515.01
7.2.220.0000.01715.16
7.2.210.0130.01015.37
7.2.200.0030.01615.05
7.2.190.0120.01215.10
7.2.180.0110.01115.16
7.2.170.0150.00615.17
7.2.160.0040.02115.21
7.2.150.0030.02017.12
7.2.140.0100.01417.05
7.2.130.0030.01516.90
7.2.120.0050.01617.01
7.2.110.0110.01117.01
7.2.100.0090.01316.92
7.2.90.0020.01816.96
7.2.80.0050.01617.11
7.2.70.0090.01317.00
7.2.60.0090.01716.76
7.2.50.0070.01516.75
7.2.40.0060.01516.92
7.2.30.0070.01517.01
7.2.20.0100.01316.92
7.2.10.0050.01616.83
7.2.00.0090.01517.87
7.1.330.0040.01915.83
7.1.320.0060.01915.77
7.1.310.0030.01915.75
7.1.300.0000.02115.56
7.1.290.0110.01515.81
7.1.280.0030.01815.87
7.1.270.0000.02215.77
7.1.260.0100.01415.86
7.1.250.0030.01815.87
7.1.240.0000.02015.83
7.1.230.0070.01715.98
7.1.220.0060.01515.63
7.1.210.0060.01615.89
7.1.200.0030.02115.84
7.1.190.0070.01315.79
7.1.180.0070.01715.98
7.1.170.0000.02415.80
7.1.160.0030.01315.74
7.1.150.0100.01315.56
7.1.140.0000.02115.96
7.1.130.0090.01515.57
7.1.120.0070.01615.78
7.1.110.0030.02015.76
7.1.100.0180.01816.76
7.1.90.0030.02116.02
7.1.80.0060.01616.05
7.1.70.0100.01016.44
7.1.60.0070.02217.63
7.1.50.0060.02016.30
7.1.40.0060.01615.60
7.1.30.0030.02015.53
7.1.20.0070.01415.53
7.1.10.0040.01815.43
7.1.00.0000.05619.15
7.0.330.0030.02015.30
7.0.320.0000.02015.57
7.0.310.0030.01915.61
7.0.300.0070.01615.40
7.0.290.0000.02015.22
7.0.280.0070.01815.21
7.0.270.0000.01615.36
7.0.260.0070.01415.25
7.0.250.0030.01315.51
7.0.240.0030.02115.44
7.0.230.0070.01715.36
7.0.220.0030.01915.14
7.0.210.0090.01215.29
7.0.200.0020.01616.05
7.0.190.0060.01615.44
7.0.180.0000.02115.57
7.0.170.0040.01515.37
7.0.160.0040.01815.42
7.0.150.0060.01515.65
7.0.140.0030.05018.72
7.0.130.0030.01915.28
7.0.120.0040.01415.54
7.0.110.0000.02415.37
7.0.100.0120.01215.29
7.0.90.0070.01515.57
7.0.80.0030.01815.41
7.0.70.0070.01415.51
7.0.60.0070.05117.72
7.0.50.0100.02816.81
7.0.40.0030.06116.74
7.0.30.0180.03116.90
7.0.20.0200.05216.74
7.0.10.0080.03916.90
7.0.00.0090.05316.78
5.6.400.0180.00614.14
5.6.390.0040.02214.40
5.6.380.0000.02314.74
5.6.370.0080.00814.48
5.6.360.0030.01914.24
5.6.350.0040.01814.50
5.6.340.0070.01414.56
5.6.330.0060.01014.33
5.6.320.0120.01214.18
5.6.310.0060.01814.31
5.6.300.0070.01414.49
5.6.290.0070.01514.11
5.6.280.0090.04717.63
5.6.270.0100.01314.20
5.6.260.0030.01914.64
5.6.250.0070.01714.27
5.6.240.0090.01314.18
5.6.230.0070.01614.09
5.6.220.0000.02314.27
5.6.210.0060.04817.27
5.6.200.0050.03316.35
5.6.190.0070.05617.50
5.6.180.0180.04817.48
5.6.170.0230.04017.41
5.6.160.0060.04917.27
5.6.150.0070.05216.15
5.6.140.0020.04916.27
5.6.130.0050.04116.19
5.6.120.0050.03317.85
5.6.110.0030.04017.79
5.6.100.0100.05217.63
5.6.90.0020.03317.62
5.6.80.0070.04917.32
5.6.70.0030.01914.22
5.6.60.0070.01314.09
5.6.50.0070.01714.14
5.6.40.0030.01314.11
5.6.30.0070.01014.17
5.6.20.0030.02114.20
5.6.10.0070.01314.05
5.6.00.0070.01714.11
5.5.380.0080.00813.94
5.5.370.0070.01714.22
5.5.360.0130.01014.13
5.5.350.0160.05017.39
5.5.340.0070.02916.18
5.5.330.0030.03617.22
5.5.320.0060.05517.34
5.5.310.0160.03917.09
5.5.300.0050.03216.23
5.5.290.0000.03716.16
5.5.280.0050.03117.56
5.5.270.0070.03217.36
5.5.260.0070.03217.45
5.5.250.0070.05717.40
5.5.240.0020.03017.31
5.5.230.0030.01614.11
5.5.220.0100.01014.31
5.5.210.0100.01614.01
5.5.200.0030.01814.21
5.5.190.0100.01313.87
5.5.180.0030.02014.32
5.5.170.0060.01814.18
5.5.160.0030.02114.38
5.5.150.0070.01614.16
5.5.140.0060.01514.38
5.5.130.0120.00914.09
5.5.120.0030.01914.13
5.5.110.0060.01613.98
5.5.100.0100.01014.19
5.5.90.0060.01514.27
5.5.80.0090.01514.13
5.5.70.0120.00914.36
5.5.60.0030.02114.54
5.5.50.0000.02614.04
5.5.40.0060.00914.29
5.5.30.0000.01914.38
5.5.20.0060.01614.35
5.5.10.0030.01914.05
5.5.00.0000.01714.07
5.4.450.0330.03815.15
5.4.440.0450.04715.29
5.4.430.0050.04115.24
5.4.420.0100.03815.21
5.4.410.0400.04015.05
5.4.400.0450.03714.94
5.4.390.0420.04515.05
5.4.380.0200.04214.73
5.4.370.0150.04114.85
5.4.360.0130.04415.00
5.4.350.0150.04214.87
5.4.340.0150.04114.83
5.4.330.0060.01211.05
5.4.320.0040.03011.68
5.4.310.0040.03511.85
5.4.300.0020.03011.66
5.4.290.0070.03011.94
5.4.280.0070.03311.72
5.4.270.0080.03311.78
5.4.260.0050.03011.85
5.4.250.0060.03011.74
5.4.240.0060.03011.70
5.4.230.0090.03311.76
5.4.220.0060.03011.70
5.4.210.0090.02511.68
5.4.200.0040.02911.55
5.4.190.0090.02811.84
5.4.180.0060.02911.73
5.4.170.0050.03111.76
5.4.160.0040.03011.67
5.4.150.0050.03011.72
5.4.140.0050.02911.70
5.4.130.0110.03011.65
5.4.120.0060.03211.58
5.4.110.0050.02911.39
5.4.100.0080.03011.49
5.4.90.0050.02811.46
5.4.80.0050.03111.61
5.4.70.0060.03011.57
5.4.60.0060.03211.54
5.4.50.0040.03111.43
5.4.40.0090.03111.51
5.4.30.0050.03311.49
5.4.20.0050.02911.55
5.4.10.0060.03311.55
5.4.00.0050.03211.08
5.3.290.0060.06312.80
5.3.280.0130.04612.71
5.3.270.0060.05312.72
5.3.260.0100.04812.72
5.3.250.0070.04712.72
5.3.240.0080.04912.72
5.3.230.0060.04612.71
5.3.220.0080.04412.68
5.3.210.0090.05212.68
5.3.200.0080.05512.68
5.3.190.0080.04512.68
5.3.180.0060.04812.67
5.3.170.0090.04812.67
5.3.160.0090.05012.67
5.3.150.0090.04212.67
5.3.140.0040.05012.66
5.3.130.0050.05312.66
5.3.120.0090.05012.66
5.3.110.0080.04812.66
5.3.100.0110.04312.12
5.3.90.0060.05012.10
5.3.80.0080.04212.09
5.3.70.0040.04612.10
5.3.60.0100.04712.08
5.3.50.0110.04012.02
5.3.40.0060.04612.02
5.3.30.0050.04611.98
5.3.20.0060.05111.76
5.3.10.0080.04611.73
5.3.00.0060.05211.72
5.2.170.0090.0299.36
5.2.160.0080.0309.36
5.2.150.0080.0399.36
5.2.140.0040.0329.36
5.2.130.0080.0299.31
5.2.120.0080.0279.31
5.2.110.0090.0419.32
5.2.100.0050.0369.31
5.2.90.0090.0369.32
5.2.80.0060.0309.31
5.2.70.0040.0389.31
5.2.60.0070.0309.27
5.2.50.0060.0359.24
5.2.40.0050.0299.21
5.2.30.0080.0339.18
5.2.20.0090.0279.18
5.2.10.0040.0289.09
5.2.00.0040.0388.95
5.1.60.0050.0278.23
5.1.50.0070.0268.22
5.1.40.0040.0248.20
5.1.30.0050.0278.55
5.1.20.0040.0338.57
5.1.10.0070.0278.30
5.1.00.0050.0248.30
5.0.50.0040.0256.78
5.0.40.0060.0256.64
5.0.30.0060.0376.45
5.0.20.0060.0206.42
5.0.10.0030.0206.40
5.0.00.0040.0346.39
4.4.90.0020.0174.82
4.4.80.0040.0214.80
4.4.70.0040.0224.80
4.4.60.0030.0214.80
4.4.50.0070.0154.82
4.4.40.0050.0324.81
4.4.30.0090.0184.81
4.4.20.0060.0164.87
4.4.10.0030.0194.88
4.4.00.0030.0304.84
4.3.110.0040.0204.74
4.3.100.0050.0174.74
4.3.90.0040.0234.71
4.3.80.0020.0304.71
4.3.70.0050.0194.71
4.3.60.0020.0184.71
4.3.50.0040.0194.70
4.3.40.0030.0274.66
4.3.30.0030.0153.48
4.3.20.0050.0183.45
4.3.10.0030.0143.41
4.3.00.0000.0237.91

preferences:
45.4 ms | 401 KiB | 5 Q