3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = "secret"; $iterations = 100000; $salt = "salt"; $hash = hash_pbkdf2("sha512", $password, $salt, $iterations, 20,true); echo base64_encode($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.5.30.0100.18820.27
8.5.20.0090.15320.26
8.5.10.0050.12920.26
8.5.00.0020.13320.07
8.4.180.0120.16119.79
8.4.170.0110.16920.49
8.4.160.0110.16323.71
8.4.150.0070.07716.85
8.4.140.0140.20817.86
8.4.130.0070.16117.61
8.4.120.0070.15720.54
8.4.110.0110.16519.14
8.4.100.0080.15317.50
8.4.90.0090.16318.68
8.4.80.0030.14517.73
8.4.70.0100.16217.75
8.4.60.0120.17118.77
8.4.50.0100.17519.45
8.4.40.0130.19024.14
8.4.30.0100.18722.45
8.4.20.0130.18617.55
8.4.10.0170.17219.63
8.3.300.0120.21320.74
8.3.290.0140.17320.75
8.3.280.0070.21118.16
8.3.270.0100.19516.62
8.3.260.0100.17016.84
8.3.250.0080.16518.61
8.3.240.0130.16216.61
8.3.230.0140.15916.63
8.3.220.0090.14717.22
8.3.210.0100.19116.73
8.3.200.0050.15516.59
8.3.190.0100.19217.02
8.3.180.0110.16316.92
8.3.170.0000.15717.27
8.3.160.0160.15918.14
8.3.150.0100.17019.14
8.3.140.0140.18016.50
8.3.130.0030.19716.64
8.3.120.0130.16818.72
8.3.110.0100.14920.94
8.3.100.0160.14418.34
8.3.90.0030.15416.66
8.3.80.0070.19018.43
8.3.70.0100.29918.17
8.3.60.0070.31418.31
8.3.50.0120.30022.95
8.3.40.0070.30818.83
8.3.30.0100.28318.68
8.3.20.0030.15620.41
8.3.10.0030.15422.07
8.3.00.0070.18719.79
8.2.300.0090.16418.06
8.2.290.0090.16920.57
8.2.280.0130.17220.23
8.2.270.0070.18117.25
8.2.260.0030.15418.46
8.2.250.0070.18416.60
8.2.240.0070.16618.75
8.2.230.0100.16322.58
8.2.220.0100.14924.06
8.2.210.0070.15226.77
8.2.200.0030.18616.38
8.2.190.0070.30118.41
8.2.180.0100.30318.29
8.2.170.0130.31918.96
8.2.160.0070.28722.96
8.2.150.0100.14824.18
8.2.140.0070.19524.66
8.2.130.0070.19222.30
8.2.120.0000.15826.35
8.2.110.0070.15820.51
8.2.100.0100.22417.80
8.2.90.0000.18917.63
8.2.80.0070.18218.64
8.2.70.0000.18917.63
8.2.60.0000.19518.04
8.2.50.0030.18518.07
8.2.40.0070.18418.16
8.2.30.0000.19218.18
8.2.20.0000.19017.64
8.2.10.0070.18217.99
8.2.00.0070.18918.10
8.1.340.0130.17521.85
8.1.330.0110.16521.81
8.1.320.0100.18016.16
8.1.310.0030.15518.54
8.1.300.0100.15115.86
8.1.290.0070.19018.88
8.1.280.0130.28025.92
8.1.270.0130.18624.09
8.1.260.0030.15728.09
8.1.250.0130.17128.09
8.1.240.0000.16419.08
8.1.230.0070.19217.85
8.1.220.0030.18817.74
8.1.210.0070.18718.77
8.1.200.0030.19317.35
8.1.190.0030.18717.23
8.1.180.0000.19418.10
8.1.170.0130.18018.67
8.1.160.0070.18718.88
8.1.150.0000.19018.79
8.1.140.0030.21219.55
8.1.130.0070.18817.61
8.1.120.0000.19817.36
8.1.110.0030.19117.33
8.1.100.0030.19117.40
8.1.90.0000.34117.41
8.1.80.0000.19517.42
8.1.70.0000.19117.36
8.1.60.0060.18817.59
8.1.50.0070.18617.41
8.1.40.0030.19217.51
8.1.30.0030.18917.54
8.1.20.0070.18617.61
8.1.10.0070.18517.50
8.1.00.0030.19017.52
8.0.300.0070.19618.77
8.0.290.0070.18616.75
8.0.280.0100.17918.41
8.0.270.0030.19217.25
8.0.260.0030.19017.36
8.0.250.0030.18516.98
8.0.240.0030.18717.05
8.0.230.0000.19616.99
8.0.220.0030.19716.92
8.0.210.0030.18916.87
8.0.200.0000.19216.91
8.0.190.0030.19616.95
8.0.180.0070.18316.89
8.0.170.0130.22816.92
8.0.160.0030.18916.85
8.0.150.0030.18516.71
8.0.140.0030.18816.74
8.0.130.0030.18813.29
8.0.120.0070.18816.87
8.0.110.0030.19116.72
8.0.100.0030.18616.74
8.0.90.0000.19216.97
8.0.80.0100.45616.91
8.0.70.0000.19016.75
8.0.60.0070.18616.85
8.0.50.0070.19116.84
8.0.30.0130.26716.88
8.0.20.0100.32017.40
8.0.10.0070.18516.99
8.0.00.0160.34016.75
7.4.330.0030.18515.08
7.4.320.0030.18716.60
7.4.300.0070.18416.58
7.4.290.0000.19016.57
7.4.280.0030.21816.50
7.4.270.0030.18816.61
7.4.260.0030.18816.49
7.4.250.0100.18416.61
7.4.240.0030.19016.45
7.4.230.0030.18716.61
7.4.220.0130.35516.61
7.4.210.0140.43316.52
7.4.200.0030.18916.40
7.4.160.0130.43016.71
7.4.150.0090.32617.40
7.4.140.0130.41517.86
7.4.130.0120.34816.55
7.4.120.0130.44016.62
7.4.110.0070.44116.41
7.4.100.0100.31916.41
7.4.90.0130.48616.40
7.4.80.0130.36719.39
7.4.70.0060.32316.50
7.4.60.0100.33316.38
7.4.50.0030.31016.58
7.4.40.0200.31816.48
7.4.30.0130.37016.55
7.4.00.0000.26114.96
7.3.330.0160.24912.96
7.3.320.0030.18513.11
7.3.310.0000.19116.13
7.3.300.0070.18716.04
7.3.290.0070.18416.23
7.3.280.0140.49716.24
7.3.270.0130.31017.40
7.3.260.0110.32116.36
7.3.250.0110.38916.31
7.3.240.0310.45316.36
7.3.230.0130.31816.42
7.3.210.0130.32116.43
7.3.200.0100.32116.20
7.3.190.0030.33116.50
7.3.180.0190.35016.23
7.3.170.0100.33216.25
7.3.160.0070.53016.21
7.2.330.0070.34316.55
7.2.320.0220.31816.51
7.2.310.0100.42516.45
7.2.300.0130.53016.55
7.2.290.0180.38816.69
7.2.60.0000.25916.65
7.2.50.0030.23116.70
7.1.200.0030.27815.44
7.1.70.0030.22817.06
7.1.60.0070.27519.75
7.1.00.0070.35322.54
7.0.200.0070.28216.83
7.0.90.4330.00019.89
7.0.80.4600.00019.89
7.0.70.4570.00019.98
7.0.60.4630.00019.99
7.0.50.4470.00020.36
7.0.40.4700.00020.30
7.0.30.4600.00020.30
7.0.20.4470.00020.25
7.0.10.5300.00020.25
7.0.00.5030.00020.22
5.6.240.4330.00020.62
5.6.230.4670.00020.64
5.6.220.5370.00020.70
5.6.210.5200.00020.72
5.6.200.4630.00021.08
5.6.190.4570.00021.01
5.6.180.5300.00021.05
5.6.170.5200.00021.02
5.6.160.5670.00021.06
5.6.150.5300.00021.08
5.6.140.5100.00021.16
5.6.130.4670.00021.08
5.6.120.4430.00021.05
5.6.110.4800.00021.06
5.6.100.4670.00021.15
5.6.90.5500.00021.08
5.6.80.4570.00020.39
5.6.70.4530.00020.45
5.6.60.4300.00020.50
5.6.50.5000.00020.47
5.6.40.4330.00020.44
5.6.30.4600.00020.50
5.6.20.4400.00020.48
5.6.10.4330.00020.43
5.6.00.4600.00020.41

preferences:
109.84 ms | 1480 KiB | 5 Q