3v4l.org

run code in 300+ PHP versions simultaneously
<?php //generate salt-----------------------------------> $salt; $password = "texmex"; for ($i=0; $i<=32; $i++) { $d=rand(1,30)%2; $salt .= $d ? chr(rand(65,90)) : chr(rand(48,57)); } //end generate salt--------------------------------| //hash password with salt--> $hashed = md5($password . $salt); //here is your new encrypted password, ready to store in the database table, `jos_users` echo $encrypted = $hashed . ':' . $salt;

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.0040.00819.62
7.1.70.0030.00617.18
7.1.60.0100.00719.82
7.1.50.0100.01016.93
7.1.00.0030.07722.57
7.0.200.0030.00616.75
7.0.140.0070.07022.00
7.0.60.0070.08319.75
7.0.50.0030.04017.89
7.0.40.0070.04720.40
7.0.30.0270.06720.17
7.0.20.0400.07020.16
7.0.10.0200.07320.16
7.0.00.0100.08019.99
5.6.280.0070.07021.02
5.6.210.0030.08720.54
5.6.200.0200.07018.19
5.6.190.0030.08720.68
5.6.180.0100.07020.35
5.6.170.0200.05020.43
5.6.160.0100.05720.49
5.6.150.0100.07718.22
5.6.140.0030.08318.21
5.6.130.0100.06318.17
5.6.120.0100.08020.99
5.6.110.0100.03720.98
5.6.100.0070.08320.96
5.6.90.0130.08021.07
5.6.80.0030.06720.53
5.6.70.0300.06020.45
5.5.350.0100.08020.41
5.5.340.0000.04317.91
5.5.330.0070.04020.32
5.5.320.0300.06320.28
5.5.310.0230.05320.24
5.5.300.0170.07017.98
5.5.290.0030.04017.95
5.5.280.0170.07720.83
5.5.270.0030.08320.67
5.5.260.0100.07320.79
5.5.250.0130.07720.65
5.5.240.0070.07720.36
5.4.450.0370.05019.49
5.4.440.0430.04019.41
5.4.430.0430.04319.24
5.4.420.0230.05019.45
5.4.410.0100.06718.96
5.4.400.0130.05018.83
5.4.390.0200.06318.75
5.4.380.0000.06718.57
5.4.370.0170.05018.71
5.4.360.0200.04718.61
5.4.350.0130.05718.72
5.4.340.0130.05318.62
5.4.320.0090.03912.46
5.4.310.0080.04112.45
5.4.300.0090.04112.46
5.4.290.0110.04212.45
5.4.280.0040.03812.32
5.4.270.0070.03812.32
5.4.260.0070.03912.32
5.4.250.0080.03812.32
5.4.240.0070.04312.32
5.4.230.0050.04512.31
5.4.220.0060.03612.31
5.4.210.0030.03812.31
5.4.200.0040.04012.31
5.4.190.0030.03712.31
5.4.180.0040.03712.31
5.4.170.0070.03512.32
5.4.160.0090.04012.31
5.4.150.0060.03412.31
5.4.140.0080.03411.99
5.4.130.0030.03711.98
5.4.120.0050.04111.94
5.4.110.0090.03811.93
5.4.100.0040.03611.93
5.4.90.0050.04111.93
5.4.80.0090.04011.93
5.4.70.0050.04711.93
5.4.60.0080.03611.93
5.4.50.0050.03511.93
5.4.40.0060.03511.91
5.4.30.0080.03311.92
5.4.20.0050.03611.92
5.4.10.0060.03511.91
5.4.00.0030.04011.41
5.3.290.0080.03612.80
5.3.280.0070.03612.71
5.3.270.0070.03712.73
5.3.260.0100.04012.72
5.3.250.0060.04212.72
5.3.240.0080.04012.71
5.3.230.0080.03612.71
5.3.220.0070.04612.68
5.3.210.0060.04712.68
5.3.200.0030.04112.68
5.3.190.0040.03812.67
5.3.180.0080.03912.67
5.3.170.0110.03112.66
5.3.160.0070.04112.67
5.3.150.0080.03612.68
5.3.140.0120.03012.66
5.3.130.0070.03712.66
5.3.120.0050.04112.66
5.3.110.0090.04112.66
5.3.100.0060.03612.12
5.3.90.0120.03412.09
5.3.80.0070.03812.07
5.3.70.0050.03812.07
5.3.60.0040.04012.06
5.3.50.0050.03812.00
5.3.40.0060.04112.00
5.3.30.0060.04111.93
5.3.20.0070.03911.70
5.3.10.0020.03911.66
5.3.00.0020.03911.65
5.2.170.0070.0299.15
5.2.160.0090.0329.15
5.2.150.0040.0329.15
5.2.140.0070.0309.15
5.2.130.0040.0359.11
5.2.120.0090.0289.11
5.2.110.0070.0289.11
5.2.100.0050.0299.12
5.2.90.0050.0349.11
5.2.80.0060.0369.11
5.2.70.0030.0329.10
5.2.60.0060.0329.06
5.2.50.0060.0299.04
5.2.40.0060.0299.00
5.2.30.0030.0368.98
5.2.20.0030.0329.00
5.2.10.0060.0278.91
5.2.00.0060.0278.77
5.1.60.0030.0258.04
5.1.50.0030.0258.04
5.1.40.0030.0258.04
5.1.30.0040.0268.38
5.1.20.0070.0238.41
5.1.10.0020.0278.13
5.1.00.0020.0288.13
5.0.50.0030.0216.60
5.0.40.0050.0186.46
5.0.30.0030.0316.28
5.0.20.0040.0196.25
5.0.10.0040.0196.23
5.0.00.0030.0316.22
4.4.90.0020.0164.78
4.4.80.0020.0164.76
4.4.70.0050.0144.75
4.4.60.0050.0134.75
4.4.50.0030.0194.77
4.4.40.0030.0274.71
4.4.30.0040.0134.76
4.4.20.0010.0174.84
4.4.10.0060.0164.85
4.4.00.0010.0264.76
4.3.110.0020.0194.67
4.3.100.0030.0154.67
4.3.90.0050.0174.63
4.3.80.0050.0324.59
4.3.70.0020.0184.63
4.3.60.0010.0164.63
4.3.50.0040.0154.63
4.3.40.0040.0244.54
4.3.30.0020.0203.29
4.3.20.0020.0193.27
4.3.10.0020.0163.23
4.3.00.0270.01315.11

preferences:
35.53 ms | 401 KiB | 5 Q