3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password="asdaddas"; $salt="asdadd121as"; function encryptPassword($password, $salt) { $pepper = "Ub2SuCfYTfncu4MwUmxH9zINM02uiot2hN5Fycu5"; $hash = sha1(md5(hash('sha512',$pepper.$salt.$password)) . $password . hash('sha256',$salt)); for ($i = 0; $i < 1000; $i++) { $hash = md5($hash); } return $hash; }

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.3.60.0130.00618.05
8.3.50.0140.01021.97
8.3.40.0110.00418.59
8.3.30.0110.00318.82
8.3.20.0070.00020.34
8.3.10.0040.00420.36
8.3.00.0070.00417.25
8.2.180.0110.00816.32
8.2.170.0110.00722.96
8.2.160.0100.00720.45
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00422.06
8.2.110.0000.00922.08
8.2.100.0040.00817.78
8.2.90.0000.00719.08
8.2.80.0040.00417.97
8.2.70.0030.00517.38
8.2.60.0060.00617.66
8.2.50.0060.00318.07
8.2.40.0040.00418.06
8.2.30.0030.00419.31
8.2.20.0080.00017.56
8.2.10.0040.00418.06
8.2.00.0030.00517.67
8.1.280.0070.00725.92
8.1.270.0030.00523.96
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.82
8.1.230.0070.00319.15
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.22
8.1.190.0080.00017.10
8.1.180.0070.00018.10
8.1.170.0040.00418.54
8.1.160.0000.00721.88
8.1.150.0000.00718.74
8.1.140.0040.00417.46
8.1.130.0000.00717.45
8.1.120.0000.00717.38
8.1.110.0070.00017.43
8.1.100.0000.00717.46
8.1.90.0070.00317.29
8.1.80.0000.00717.29
8.1.70.0000.00717.29
8.1.60.0000.00917.41
8.1.50.0040.00417.49
8.1.40.0040.00417.42
8.1.30.0000.00917.59
8.1.20.0040.00417.62
8.1.10.0000.00717.48
8.1.00.0040.00417.39
8.0.300.0070.00018.77
8.0.290.0090.00016.63
8.0.280.0000.00718.38
8.0.270.0000.00716.71
8.0.260.0030.00316.64
8.0.250.0040.00416.88
8.0.240.0040.00416.89
8.0.230.0000.00716.89
8.0.220.0050.00216.81
8.0.210.0030.00316.88
8.0.200.0000.00616.88
8.0.190.0110.00016.81
8.0.180.0070.00016.88
8.0.170.0080.00016.75
8.0.160.0000.00716.83
8.0.150.0000.00816.80
8.0.140.0000.00716.69
8.0.130.0000.00713.30
8.0.120.0050.00316.79
8.0.110.0000.00816.75
8.0.100.0000.00816.82
8.0.90.0000.00716.67
8.0.80.0060.01116.72
8.0.70.0050.00216.86
8.0.60.0000.00716.83
8.0.50.0000.00716.84
8.0.30.0070.01117.00
8.0.20.0120.00617.40
8.0.10.0040.00416.87
8.0.00.0050.01316.83
7.4.330.0000.00515.00
7.4.320.0030.00316.47
7.4.300.0030.00316.34
7.4.290.0000.00716.50
7.4.280.0040.00416.52
7.4.270.0000.00716.59
7.4.260.0070.00016.45
7.4.250.0030.00616.48
7.4.240.0040.00416.38
7.4.230.0040.00416.30
7.4.220.0180.00316.46
7.4.210.0130.00616.44
7.4.200.0000.00716.61
7.4.160.0130.01016.44
7.4.150.0130.00717.40
7.4.140.0090.01217.86
7.4.130.0100.00616.38
7.4.120.0110.00516.36
7.4.110.0110.00716.44
7.4.100.0110.01416.49
7.4.90.0100.00716.22
7.4.80.0070.01719.39
7.4.70.0110.00616.46
7.4.60.0120.00616.34
7.4.50.0000.00916.28
7.4.40.0110.00516.45
7.4.30.0100.00616.41
7.4.00.0080.01014.96
7.3.330.0000.00513.17
7.3.320.0060.00013.01
7.3.310.0040.00416.03
7.3.300.0000.00716.06
7.3.290.0090.00616.22
7.3.280.0090.00716.17
7.3.270.0130.00617.40
7.3.260.0060.01016.32
7.3.250.0100.00716.16
7.3.240.0060.01116.19
7.3.230.0100.00616.39
7.3.210.0090.00916.39
7.3.200.0140.00719.39
7.3.190.0100.00716.18
7.3.180.0040.01216.49
7.3.170.0140.00716.35
7.3.160.0140.00316.22
7.3.120.0100.00714.73
7.3.110.0060.01114.59
7.3.100.0070.00714.70
7.3.90.0060.00714.59
7.3.80.0020.01314.55
7.3.70.0040.01014.49
7.3.60.0060.00614.79
7.3.50.0080.00614.56
7.3.40.0080.00514.60
7.3.30.0040.00814.67
7.3.20.0060.00816.44
7.3.10.0080.00516.53
7.3.00.0080.00416.35
7.2.330.0030.01316.41
7.2.320.0100.01316.61
7.2.310.0090.01216.16
7.2.300.0100.00716.48
7.2.290.0060.01516.42
7.2.250.0090.00714.90
7.2.240.0070.00914.88
7.2.230.0090.00614.93
7.2.220.0050.00514.69
7.2.210.0070.01014.86
7.2.200.0080.00514.91
7.2.190.0040.00514.71
7.2.180.0100.00214.91
7.2.170.0050.00514.60
7.2.160.0000.01114.73
7.2.150.0000.01216.65
7.2.140.0120.00616.69
7.2.130.0060.00916.39
7.2.120.0110.00016.80
7.2.110.0030.00716.52
7.2.100.0070.00316.68
7.2.90.0060.00316.65
7.2.80.0070.01016.62
7.2.70.0070.01016.78
7.2.60.0030.01016.57
7.2.50.0000.01416.68
7.2.40.0030.00616.79
7.2.30.0080.00816.50
7.2.20.0000.01316.61
7.2.10.0030.00716.58
7.2.00.0140.00317.74
7.1.330.0030.01115.57
7.1.320.0060.00815.34
7.1.310.0080.00315.56
7.1.300.0040.00915.42
7.1.290.0080.00515.44
7.1.280.0060.00615.59
7.1.270.0030.01015.60
7.1.260.0060.00715.57
7.1.250.0080.00415.59
7.1.200.0060.00615.52
7.1.100.0060.00617.68
7.1.70.0030.00616.99
7.1.60.0100.01319.61
7.1.50.0070.00416.90
7.1.00.0070.07322.44
7.0.200.0080.00016.45
7.0.140.0030.06722.18
7.0.60.0170.07719.91
7.0.50.0030.08017.95
7.0.40.0100.04320.09
7.0.30.0200.05320.02
7.0.20.0300.06720.25
7.0.10.0300.07720.16
7.0.00.0000.04320.16
5.6.280.0030.07021.07
5.6.210.0100.06020.46
5.6.200.0030.07718.14
5.6.190.0100.05720.61
5.6.180.0300.06320.46
5.6.170.0270.08320.60
5.6.160.0030.05320.57
5.6.150.0030.04018.30
5.6.140.0030.07318.15
5.6.130.0030.04018.14
5.6.120.0070.04020.98
5.6.110.0100.08021.02
5.6.100.0100.06720.99
5.6.90.0100.07720.89
5.6.80.0030.08320.39
5.6.70.4430.04320.44
5.5.350.0070.07720.30
5.5.340.0030.03718.02
5.5.330.0130.07320.31
5.5.320.0170.08320.52
5.5.310.0270.07720.30
5.5.300.0030.07017.92
5.5.290.0070.09018.01
5.5.280.0070.08320.66
5.5.270.0030.08320.96
5.5.260.0070.07320.76
5.5.250.0070.04020.68
5.5.240.0000.04320.35
5.4.450.0370.04319.64
5.4.440.0700.04719.17
5.4.430.0200.04719.55
5.4.420.0870.04019.56
5.4.410.0530.03719.07
5.4.400.0470.03719.09
5.4.390.0100.04719.00
5.4.380.0330.05018.56
5.4.370.0430.04718.78
5.4.360.0200.05718.79
5.4.350.0230.05718.75
5.4.340.0300.06018.70
5.4.320.0050.04512.50
5.4.310.0060.04012.50
5.4.300.0070.04112.51
5.4.290.0100.04412.50
5.4.280.0070.03412.40
5.4.270.0060.04812.40
5.4.260.0080.03912.40
5.4.250.0050.03812.39
5.4.240.0060.03512.40
5.4.230.0070.04112.39
5.4.220.0050.03812.39
5.4.210.0090.03212.39
5.4.200.0040.03912.39
5.4.190.0030.03912.38
5.4.180.0090.04212.39
5.4.170.0010.04012.39
5.4.160.0050.03612.39
5.4.150.0090.03912.38
5.4.140.0060.04212.07
5.4.130.0030.03712.06
5.4.120.0070.04012.02
5.4.110.0070.03912.01
5.4.100.0080.03312.01
5.4.90.0050.03812.01
5.4.80.0050.03812.01
5.4.70.0050.03612.00
5.4.60.0040.04112.01
5.4.50.0090.04312.00
5.4.40.0050.03812.00
5.4.30.0030.03811.99
5.4.20.0060.03411.99
5.4.10.0060.03411.99
5.4.00.0060.03611.48
5.3.290.0020.04212.80
5.3.280.0070.03612.71
5.3.270.0060.03812.72
5.3.260.0050.04112.72
5.3.250.0040.03812.72
5.3.240.0110.03412.72
5.3.230.0080.03712.71
5.3.220.0060.03612.68
5.3.210.0070.03712.68
5.3.200.0060.03612.68
5.3.190.0050.03812.68
5.3.180.0060.04012.68
5.3.170.0100.03412.67
5.3.160.0050.03812.67
5.3.150.0070.03712.67
5.3.140.0070.03612.66
5.3.130.0090.04812.66
5.3.120.0040.04012.66
5.3.110.0040.03912.65
5.3.100.0060.03612.12
5.3.90.0050.04312.10
5.3.80.0040.03712.09
5.3.70.0080.04212.09
5.3.60.0040.03712.08
5.3.50.0070.03412.02
5.3.40.0100.03212.02
5.3.30.0030.03911.98
5.3.20.0080.03611.76
5.3.10.0090.04211.73
5.3.00.0040.03911.72
5.2.170.0060.0299.21
5.2.160.0040.0299.21
5.2.150.0060.0299.21
5.2.140.0050.0309.21
5.2.130.0030.0309.17
5.2.120.0040.0289.17
5.2.110.0090.0319.18
5.2.100.0040.0299.18
5.2.90.0050.0289.17
5.2.80.0060.0309.16
5.2.70.0070.0339.17
5.2.60.0070.0279.13
5.2.50.0060.0309.10
5.2.40.0030.0379.07
5.2.30.0040.0309.05
5.2.20.0010.0319.04
5.2.10.0050.0278.94
5.2.00.0050.0288.80
5.1.60.0040.0248.09
5.1.50.0060.0238.08
5.1.40.0070.0218.06
5.1.30.0030.0278.41
5.1.20.0040.0268.44
5.1.10.0060.0248.16
5.1.00.0050.0348.16
5.0.50.0020.0226.63
5.0.40.0040.0266.50
5.0.30.0030.0356.31
5.0.20.0060.0216.28
5.0.10.0030.0206.25
5.0.00.0030.0316.25
4.4.90.0030.0154.77
4.4.80.0040.0144.75
4.4.70.0040.0164.75
4.4.60.0020.0164.76
4.4.50.0030.0154.77
4.4.40.0050.0264.71
4.4.30.0030.0164.76
4.4.20.0050.0204.85
4.4.10.0060.0194.85
4.4.00.0020.0264.76
4.3.110.0020.0164.67
4.3.100.0020.0194.67
4.3.90.0030.0144.64
4.3.80.0040.0254.58
4.3.70.0040.0134.63
4.3.60.0020.0154.63
4.3.50.0020.0174.63
4.3.40.0030.0264.53
4.3.30.0040.0143.30
4.3.20.0010.0173.27
4.3.10.0030.0153.24
4.3.00.0030.01716.72

preferences:
46.16 ms | 403 KiB | 5 Q