3v4l.org

run code in 300+ PHP versions simultaneously
<?php $password = "password"; $iterations = 1000; // Generate a random IV using mcrypt_create_iv(), // openssl_random_pseudo_bytes() or another suitable source of randomness $salt = mcrypt_create_iv(16, MCRYPT_DEV_URANDOM); echo $salt; $hash = hash_pbkdf2("sha256", $password, $salt, $iterations, 20); echo $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.70.0110.00718.55
8.3.60.0120.00918.28
8.3.50.0120.00721.97
8.3.40.0150.00018.82
8.3.30.0100.00318.93
8.3.20.0080.00020.29
8.3.10.0040.00421.77
8.3.00.0050.00320.21
8.2.190.0070.00718.42
8.2.180.0090.00616.75
8.2.170.0140.00022.96
8.2.160.0160.00022.25
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0030.00617.63
8.2.110.0110.01121.12
8.2.100.0080.00419.48
8.2.90.0040.00419.14
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0030.00617.80
8.2.50.0000.00818.07
8.2.40.0050.00319.39
8.2.30.0000.00720.50
8.2.20.0030.00617.58
8.2.10.0050.00317.93
8.2.00.0000.00718.11
8.1.280.0040.01125.92
8.1.270.0110.00423.79
8.1.260.0040.00426.35
8.1.250.0110.00328.09
8.1.240.0030.00621.37
8.1.230.0080.00417.42
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0030.00617.22
8.1.190.0080.00017.23
8.1.180.0000.00718.10
8.1.170.0000.00818.52
8.1.160.0050.00221.97
8.1.150.0040.00418.87
8.1.140.0050.00317.46
8.1.130.0030.00317.49
8.1.120.0000.00717.34
8.1.110.0000.00717.40
8.1.100.0040.00417.39
8.1.90.0070.00017.29
8.1.80.0030.00317.39
8.1.70.0000.00817.35
8.1.60.0040.00417.49
8.1.50.0030.00517.49
8.1.40.0030.00617.50
8.1.30.0030.00517.68
8.1.20.0000.00717.64
8.1.10.0000.00817.51
8.1.00.0030.00517.49
8.0.300.0020.00518.77
8.0.290.0000.00716.75
8.0.280.0030.00318.38
8.0.270.0100.00017.07
8.0.260.0030.00317.10
8.0.250.0020.00516.89
8.0.240.0070.00016.81
8.0.230.0040.00416.97
8.0.220.0040.00416.79
8.0.210.0080.00016.92
8.0.200.0060.00017.00
8.0.190.0030.00717.02
8.0.180.0040.00416.95
8.0.170.0090.00316.75
8.0.160.0000.00716.77
8.0.150.0070.00016.89
8.0.140.0000.00716.92
8.0.130.0030.00313.35
8.0.120.0050.00316.88
8.0.110.0070.00016.88
8.0.100.0040.00416.78
8.0.90.0040.00416.84
8.0.80.0070.01316.88
8.0.70.0040.00416.90
8.0.60.0000.00816.96
8.0.50.0030.00516.72
8.0.30.0130.00617.17
8.0.20.0130.00917.40
8.0.10.0000.00717.05
8.0.00.0170.00516.84
7.4.330.0000.00515.11
7.4.320.0030.00316.43
7.4.300.0030.00316.61
7.4.290.0000.00816.49
7.4.280.0080.00016.42
7.4.270.0040.00416.42
7.4.260.0040.00416.48
7.4.250.0040.00416.55
7.4.240.0050.00216.60
7.4.230.0070.00016.56
7.4.220.0120.00716.60
7.4.210.0140.00316.61
7.4.200.0030.00316.63
7.4.160.0130.00316.48
7.4.150.0120.00617.40
7.4.140.0110.00817.86
7.4.130.0090.00816.41
7.4.120.0090.00916.46
7.4.110.0100.00716.39
7.4.100.0130.01016.72
7.4.90.0100.00716.54
7.4.80.0060.01119.39
7.4.70.0100.01016.42
7.4.60.0060.01016.43
7.4.50.0040.00416.53
7.4.40.0100.01016.52
7.4.30.0110.00816.48
7.4.00.0070.01214.82
7.3.330.0000.00613.09
7.3.320.0030.00313.18
7.3.310.0070.00016.12
7.3.300.0040.00416.26
7.3.290.0080.00916.23
7.3.280.0080.01116.24
7.3.270.0090.01217.40
7.3.260.0130.01016.30
7.3.250.0120.00616.36
7.3.240.0160.00416.28
7.3.230.0140.01016.39
7.3.210.0030.02016.48
7.3.200.0080.00816.30
7.3.190.0030.01216.11
7.3.180.0090.00916.33
7.3.170.0090.01316.30
7.3.160.0030.01716.55
7.3.120.0030.01314.94
7.3.110.0030.01314.81
7.3.100.0070.01114.98
7.3.90.0070.01014.78
7.3.80.0070.00714.71
7.3.70.0070.00714.61
7.3.60.0090.00614.77
7.3.50.0030.01014.54
7.3.40.0030.00914.79
7.3.30.0040.01214.64
7.3.20.0090.00616.48
7.3.10.0090.00616.47
7.3.00.0040.00716.51
7.2.330.0070.01116.59
7.2.320.0030.01916.23
7.2.310.0100.00716.33
7.2.300.0120.00616.43
7.2.290.0070.01016.43
7.2.250.0090.01214.53
7.2.240.0070.01314.71
7.2.230.0040.01415.14
7.2.220.0100.01014.83
7.2.210.0040.01115.08
7.2.200.0000.00814.85
7.2.190.0080.00414.93
7.2.180.0030.00715.02
7.2.170.0070.00714.74
7.2.60.0000.01616.86
7.2.00.0100.00318.94
7.1.330.0130.00015.61
7.1.320.0030.00915.74
7.1.310.0030.00615.64
7.1.300.0040.00715.64
7.1.290.0030.00615.66
7.1.280.0070.00715.70
7.1.270.0070.00715.54
7.1.260.0030.00715.81
7.1.200.0030.00815.49
7.1.100.0000.01017.77
7.1.70.0030.00516.63
7.1.60.0140.01019.11
7.1.50.0140.00716.92
7.1.00.0070.07322.36
7.0.200.0030.00716.70
7.0.60.0200.07320.00
7.0.50.0070.07317.88
7.0.40.0130.08319.98
7.0.30.0200.04720.32
7.0.20.0130.04320.12
7.0.10.0030.07720.01
7.0.00.0030.09020.01
5.6.280.0030.06720.77
5.6.210.0070.06720.46
5.6.200.0170.07318.19
5.6.190.0130.06720.35
5.6.180.0400.07020.56
5.6.170.0230.06020.48
5.6.160.0100.08720.49
5.6.150.0100.07318.09
5.6.140.0070.08318.11
5.6.130.0100.06018.14
5.6.120.0030.08021.08
5.6.110.0100.08321.10
5.6.100.0230.06720.98
5.6.90.0100.05721.12
5.6.80.0130.07320.49
5.5.350.0100.07020.43
5.5.340.0100.07017.92
5.5.330.0070.04320.19
5.5.320.3530.04720.21
5.5.310.0330.07320.21
5.5.300.0030.05717.92
5.5.290.0100.07718.00
5.5.280.0070.08720.79
5.5.270.0100.08320.77
5.5.260.0070.04020.83
5.5.250.0070.08320.65
5.5.240.0000.06320.22
5.4.450.1100.05319.45
5.4.440.0900.07719.32
5.4.430.1100.05319.51
5.4.420.1230.08019.46
5.4.410.1100.07319.42
5.4.400.1170.04319.23
5.4.390.1030.05719.25
5.4.380.1030.06019.09
5.4.370.1030.06319.26
5.4.360.1030.06018.78
5.4.350.0970.05719.28
5.4.340.0830.06719.31
5.4.320.0870.06019.10
5.4.310.1130.07019.29
5.4.300.1300.06319.16
5.4.290.1070.04719.30
5.4.280.0930.06318.77
5.4.270.1030.05718.80
5.4.260.1030.05719.22
5.4.250.0930.07319.18
5.4.240.1170.06019.15
5.4.230.1100.07319.25
5.4.220.1030.07718.94
5.4.210.1070.05019.27
5.4.200.0930.06318.94
5.4.190.1100.07318.78
5.4.180.1130.06019.14
5.4.170.1000.06019.13
5.4.160.1030.05319.20
5.4.150.1270.06318.97
5.4.140.1200.04316.33
5.4.130.0200.04316.32
5.4.120.0130.06716.44
5.4.110.1330.05716.47
5.4.100.1300.06716.47
5.4.90.1030.07316.21
5.4.80.1030.04716.35
5.4.70.0330.05716.29
5.4.60.0130.06316.39
5.4.50.0070.04016.36
5.4.40.0230.05716.42
5.4.30.0330.06316.47
5.4.20.0100.04016.04

preferences:
50.98 ms | 401 KiB | 5 Q