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); ?>

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.2.00.0000.02119.02
7.1.100.0060.01618.32
7.1.70.0040.01117.16
7.1.60.0070.01419.61
7.1.50.0260.03634.67
7.1.00.0030.08722.25
7.0.200.0000.01616.82
7.0.140.0000.09022.08
7.0.60.0130.09020.03
7.0.50.0070.06317.88
7.0.40.0100.05320.11
7.0.30.0370.08320.28
7.0.20.0270.05720.05
7.0.10.0170.09320.23
7.0.00.0170.08320.20
5.6.280.0000.09021.02
5.6.210.0100.09020.73
5.6.200.0070.09318.20
5.6.190.0070.10020.58
5.6.180.0270.07320.33
5.6.170.0200.05320.51
5.6.160.0100.06020.52
5.6.150.0070.09318.23
5.6.140.0070.09718.16
5.6.130.0070.09318.15
5.6.120.0100.10020.89
5.6.110.0070.08321.04
5.6.100.0070.09321.09
5.6.90.0030.05320.99
5.6.80.0070.09320.39
5.5.350.0330.08720.43
5.5.340.0070.04317.93
5.5.330.0100.05020.57
5.5.320.0100.09320.28
5.5.310.0330.05720.27
5.5.300.0130.07717.98
5.5.290.0100.04317.98
5.5.280.0000.05020.84
5.5.270.0030.05020.88
5.5.260.0030.05020.75
5.5.250.0100.07720.69
5.5.240.0100.03020.26
5.4.450.0130.06319.31
5.4.440.0800.07019.55
5.4.430.0770.07319.47
5.4.420.1170.07719.47
5.4.410.0130.06319.35
5.4.400.0900.06318.84
5.4.390.0700.07019.15
5.4.380.0200.07718.61
5.4.370.0230.07018.46
5.4.360.0300.06018.63
5.4.350.0200.06718.78
5.4.340.0430.05318.72
5.4.320.0070.04812.50
5.4.310.0100.05412.50
5.4.300.0070.05112.50
5.4.290.0090.05612.50
5.4.280.0130.04812.40
5.4.270.0100.04612.40
5.4.260.0090.05012.40
5.4.250.0040.05312.40
5.4.240.0090.04312.40
5.4.230.0070.04612.39
5.4.220.0080.04312.39
5.4.210.0060.04412.39
5.4.200.0060.05412.39
5.4.190.0030.05212.39
5.4.180.0070.04312.39
5.4.170.0110.04312.39
5.4.160.0070.04312.39
5.4.150.0110.04412.39
5.4.140.0120.05612.07
5.4.130.0100.04312.05
5.4.120.0080.04312.02
5.4.110.0060.04712.02
5.4.100.0080.04712.01
5.4.90.0060.05112.02
5.4.80.0080.04812.02
5.4.70.0090.04612.00
5.4.60.0100.04912.01
5.4.50.0070.04612.00
5.4.40.0100.04112.00
5.4.30.0090.04611.99
5.4.20.0070.04812.00
5.4.10.0130.05611.99
5.4.00.0050.04411.49
5.3.290.0100.04812.80
5.3.280.0070.05612.71
5.3.270.0070.05312.73
5.3.260.0060.04912.72
5.3.250.0100.04212.72
5.3.240.0070.04412.72
5.3.230.0080.04612.71
5.3.220.0080.05012.68
5.3.210.0050.05312.68
5.3.200.0080.04312.68
5.3.190.0080.04212.68
5.3.180.0040.04612.68
5.3.170.0080.05012.67
5.3.160.0050.06112.67
5.3.150.0080.04412.68
5.3.140.0050.04612.66
5.3.130.0070.05012.66
5.3.120.0050.05312.66
5.3.110.0060.04812.66
5.3.100.0040.04712.12
5.3.90.0060.04512.10
5.3.80.0040.04612.09
5.3.70.0080.04412.10
5.3.60.0060.04712.08
5.3.50.0090.05112.02
5.3.40.0060.04512.02
5.3.30.0080.04411.98
5.3.20.0050.04411.76
5.3.10.0070.04011.73
5.3.00.0060.04311.73
5.2.170.0030.0339.36
5.2.160.0050.0309.36
5.2.150.0040.0329.36
5.2.140.0070.0309.36
5.2.130.0060.0299.31
5.2.120.0060.0289.31
5.2.110.0070.0339.32
5.2.100.0040.0299.31
5.2.90.0070.0339.31
5.2.80.0080.0319.30
5.2.70.0060.0299.31
5.2.60.0050.0309.27
5.2.50.0020.0329.23
5.2.40.0050.0279.21
5.2.30.0030.0329.18
5.2.20.0060.0289.18
5.2.10.0080.0259.08
5.2.00.0050.0298.94
5.1.60.0050.0238.22
5.1.50.0060.0228.22
5.1.40.0020.0268.20
5.1.30.0080.0238.55
5.1.20.0020.0328.57
5.1.10.0040.0298.30
5.1.00.0020.0338.30
5.0.50.0000.0236.79
5.0.40.0020.0206.64
5.0.30.0050.0306.46
5.0.20.0040.0196.41
5.0.10.0030.0206.40
5.0.00.0030.0316.39
4.4.90.0010.0174.82
4.4.80.0020.0164.80
4.4.70.0030.0154.80
4.4.60.0020.0204.80
4.4.50.0040.0214.82
4.4.40.0020.0294.81
4.4.30.0040.0144.81
4.4.20.0030.0164.88
4.4.10.0030.0174.88
4.4.00.0030.0264.83
4.3.110.0020.0184.75
4.3.100.0030.0164.73
4.3.90.0080.0174.71
4.3.80.0030.0244.71
4.3.70.0030.0144.71
4.3.60.0030.0164.71
4.3.50.0020.0174.71
4.3.40.0030.0254.66
4.3.30.0010.0203.47
4.3.20.0030.0153.45
4.3.10.0030.0153.41
4.3.00.0070.0207.91

preferences:
34.58 ms | 400 KiB | 5 Q