3v4l.org

run code in 300+ PHP versions simultaneously
<?php $passwords = [ 'Password123LOLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabfjhys' => '3e!-uh5Cxkk!6btWU5?R', 'Password123LOLaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaruobbk' => '1ed+&$U( n=^K.`R"x(L', 'Password123LOL!aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaapnbggv' => 'ZD7<t,=B&_l?#u:K$!f*', 'Password123LOL!aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabdiappm' => 'K6G_hA21;kKX$ 4?!z6.', ]; $i = 1000; foreach ($passwords as $long => $short) { $s = random_bytes(16); $h1 = hash_pbkdf2('sha1', $long, $s, $i); $h2 = hash_pbkdf2('sha1', $short, $s, $i); var_dump(hash_equals($h1, $h2)); }

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.3.10.0030.01616.29
7.3.00.0000.01716.29
7.2.130.0040.01516.27
7.2.120.0130.01316.38
7.2.110.0070.01716.55
7.2.100.0150.00916.38
7.2.90.0000.02216.43
7.2.80.0080.01216.41
7.2.70.0090.01616.52
7.2.60.0150.01716.32
7.2.50.0110.01816.52
7.2.40.0160.01616.49
7.2.30.0130.02317.20
7.2.20.0180.02016.98
7.2.10.0130.02317.06
7.2.00.0130.02017.30
7.1.250.0080.02115.36
7.1.150.0160.02216.70
7.1.140.0140.02216.83
7.1.130.0170.02616.52
7.1.120.0110.02516.25
7.1.110.0140.02815.87
7.1.100.0100.02415.99
7.1.90.0150.01615.95
7.1.80.0110.02715.77
7.1.70.0090.02116.23
7.1.60.0620.01826.18
7.1.50.0200.02924.78
7.1.40.0390.03332.46
7.1.30.0290.02832.40
7.1.20.0300.03732.68
7.1.10.0070.03214.65
7.1.00.0060.05418.61
7.0.270.0130.02816.07
7.0.260.0130.02516.23
7.0.250.0130.02015.78
7.0.240.0110.02915.75
7.0.230.0120.02915.67
7.0.220.0120.02515.65
7.0.210.0110.02814.73
7.0.200.0080.01315.88
7.0.190.0400.01914.76
7.0.180.0150.02014.45
7.0.170.0110.01914.44
7.0.160.0130.02714.49
7.0.150.0150.02614.19
7.0.140.0120.02614.56
7.0.130.0110.02414.52
7.0.120.0110.02314.82
7.0.110.0150.02814.24
7.0.100.0110.02814.36
7.0.90.0130.02614.23
7.0.80.0130.02114.29
7.0.70.0090.02714.41
7.0.60.0180.04717.07
7.0.50.0080.05316.14
7.0.40.0100.03617.30
7.0.30.0260.04017.38
7.0.20.0230.05017.47
7.0.10.0130.04617.47
7.0.00.0590.05917.31
5.6.300.0260.07520.61
5.6.290.0210.07720.83
5.6.280.0060.06920.98
5.6.270.0260.07120.92
5.6.260.0190.07920.95
5.6.250.0190.07220.71
5.6.240.0270.08520.85
5.6.230.0140.07920.86
5.6.220.0210.07620.71
5.6.210.0100.07620.84
5.6.200.0120.05419.51
5.6.190.0110.06220.74
5.6.180.0140.05820.67
5.6.170.0230.06720.63
5.6.160.0130.06820.70
5.6.150.0090.06619.43
5.6.140.0130.06719.39
5.6.130.0110.05619.46
5.6.120.0160.06320.87
5.6.110.0130.06820.91
5.6.100.0170.07820.85
5.6.90.0120.06420.93
5.6.80.0150.06820.26
5.6.70.0170.07320.36
5.6.60.0190.08520.08
5.6.50.0180.06020.29
5.6.40.0180.06920.24
5.6.30.0170.06620.07
5.6.20.0220.07020.17
5.6.10.0150.06420.23
5.6.00.0220.06620.05
5.5.380.0220.07117.42
5.5.370.0220.07117.40
5.5.360.0140.07117.40
5.5.350.0230.07218.87
5.5.340.0150.07017.98
5.5.330.0120.07319.04
5.5.320.0360.07219.17
5.5.310.0220.07919.12
5.5.300.0130.05717.91
5.5.290.0140.06317.89
5.5.280.0110.06119.48
5.5.270.0180.07519.30
5.5.260.0170.06919.39
5.5.250.0150.05519.23
5.5.240.0170.06118.85
5.5.230.0160.07817.34
5.5.220.0240.05717.42
5.5.210.0250.06917.37
5.5.200.0190.05217.34
5.5.190.0200.07017.32
5.5.180.0230.05217.31
5.5.160.0180.07517.32
5.5.150.0140.05717.32
5.5.140.0130.05517.41
5.5.130.0180.05117.23
5.5.120.0260.04717.22
5.5.110.0170.05517.41
5.5.100.0120.06117.23
5.5.90.0170.05117.21
5.5.80.0130.07417.20
5.5.70.0160.07617.25
5.5.60.0200.05617.21
5.5.50.0160.05916.95
5.5.40.0150.06717.21
5.5.30.0150.05116.98
5.5.20.0170.05417.20
5.5.10.0190.04917.27
5.5.00.0190.07717.20

preferences:
28.46 ms | 403 KiB | 5 Q