3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hA = str_repeat('A', 65); $hB = \hash('sha256', $hA, true); echo $hA . "\n===\n0x" . bin2hex($hB) . "\n\n"; var_dump( hash_hmac('sha256', 'test', $hA) === hash_hmac('sha256', 'test', $hB) ); var_dump( hash_pbkdf2('sha256', $hA, 'test', 10000, 32) === hash_pbkdf2('sha256', $hB, 'test', 10000, 32) );

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.10.0090.02019.99
8.5.00.0110.02120.07
8.4.160.0110.02123.97
8.4.150.0020.00014.05
8.4.140.0140.01917.96
8.4.130.0130.01717.89
8.4.120.0110.02022.27
8.4.110.0110.02018.93
8.4.100.0110.02117.59
8.4.90.0140.01817.61
8.4.80.0050.00819.60
8.4.70.0130.01817.97
8.4.60.0150.01619.18
8.4.50.0100.01923.94
8.4.40.0100.00319.48
8.4.30.0030.02917.88
8.4.20.0070.02317.89
8.4.10.0060.00917.56
8.3.280.0140.05418.37
8.3.270.0120.06516.66
8.3.260.0130.05016.62
8.3.250.0110.04919.24
8.3.240.0100.04216.68
8.3.230.0110.04216.79
8.3.220.0110.03416.79
8.3.210.0050.02516.75
8.3.200.0050.02716.62
8.3.190.0110.03817.12
8.3.180.0070.04516.60
8.3.170.0070.05017.22
8.3.160.0070.04120.15
8.3.150.0030.04416.61
8.3.140.0030.06717.00
8.3.130.0030.02818.39
8.3.120.0060.02519.03
8.3.110.0070.02520.94
8.3.100.0040.02924.06
8.3.90.0100.03826.77
8.3.80.0090.02818.43
8.3.70.0130.05916.63
8.3.60.0100.06516.75
8.3.50.0070.06022.05
8.3.40.0130.04818.67
8.3.30.0100.07018.67
8.3.20.0000.05418.79
8.3.10.0060.02522.04
8.3.00.0100.06617.91
8.2.290.0100.04518.95
8.2.280.0100.05018.47
8.2.270.0070.04317.41
8.2.260.0030.02818.54
8.2.250.0030.03016.38
8.2.240.0030.03020.70
8.2.230.0030.02922.58
8.2.220.0100.02937.54
8.2.210.0030.02726.77
8.2.200.0090.02818.41
8.2.190.0100.06116.58
8.2.180.0130.04518.41
8.2.170.0070.06522.96
8.2.160.0070.05019.33
8.2.150.0070.02524.18
8.2.140.0130.04824.66
8.2.130.0040.02821.00
8.2.120.0000.03026.35
8.2.110.0100.02521.23
8.2.100.0070.03317.93
8.2.90.0000.03619.22
8.2.80.0030.03417.97
8.2.70.0060.03117.50
8.2.60.0060.02918.05
8.2.50.0040.03218.10
8.2.40.0060.02920.73
8.2.30.0060.03120.53
8.2.20.0000.03617.80
8.2.10.0000.03618.12
8.2.00.0070.02918.13
8.1.330.0110.03316.18
8.1.320.0100.05416.00
8.1.310.0000.03018.53
8.1.300.0070.02517.97
8.1.290.0040.03330.84
8.1.280.0100.05025.92
8.1.270.0090.02223.99
8.1.260.0000.03228.09
8.1.250.0000.03128.09
8.1.240.0060.02622.14
8.1.230.0100.03019.23
8.1.220.0060.02917.78
8.1.210.0060.02918.77
8.1.200.0030.03417.35
8.1.190.0070.02917.35
8.1.180.0060.03318.10
8.1.170.0100.02618.96
8.1.160.0030.03218.95
8.1.150.0030.03118.91
8.1.140.0000.03419.52
8.1.130.0030.03117.78
8.1.120.0000.03617.42
8.1.110.0030.03217.42
8.1.100.0030.03317.52
8.1.90.0000.03517.56
8.1.80.0030.03117.54
8.1.70.0030.03117.44
8.1.60.0030.03217.52
8.1.50.0000.03617.62
8.1.40.0030.03417.60
8.1.30.0000.03617.72
8.1.20.0060.02917.65
8.1.10.0030.03117.53
8.1.00.0040.03217.52
8.0.300.0030.03318.77
8.0.290.0030.03216.75
8.0.280.0000.03418.39
8.0.270.0000.03417.32
8.0.260.0070.02718.52
8.0.250.0000.03417.04
8.0.240.0030.03216.92
8.0.230.0030.03117.04
8.0.220.0060.02916.84
8.0.210.0000.03417.00
8.0.200.0000.03417.01
8.0.190.0040.03217.01
8.0.180.0000.03516.93
8.0.170.0000.03617.04
8.0.160.0070.02916.93
8.0.150.0070.02816.94
8.0.140.0040.03216.84
8.0.130.0030.03013.26
8.0.120.0040.03216.91
8.0.110.0030.03416.94
8.0.100.0000.03416.92
8.0.90.0030.03316.96
8.0.80.0070.07316.95
8.0.70.0060.02816.83
8.0.60.0030.03116.85
8.0.50.0000.03516.95
8.0.30.0050.05216.96
8.0.20.0100.05917.41
8.0.10.0060.02916.98
8.0.00.0120.06716.79
7.4.330.0030.02915.08
7.4.320.0000.03416.67
7.4.300.0070.02716.64
7.4.290.0030.03116.49
7.4.280.0070.03016.68
7.4.270.0030.03116.58
7.4.260.0030.03116.60
7.4.250.0040.03216.50
7.4.240.0060.02916.58
7.4.230.0000.03516.49
7.4.220.0120.06516.64
7.4.210.0100.06816.66
7.4.200.0000.03416.60
7.4.160.0130.05816.49
7.4.150.0130.05217.40
7.4.140.0130.06917.86
7.4.130.0070.06316.60
7.4.120.0100.05616.58
7.4.110.0060.05916.54
7.4.100.0030.06216.60
7.4.90.0130.06016.46
7.4.80.0060.06019.39
7.4.70.0130.05516.58
7.4.60.0100.05416.57
7.4.50.0070.04316.63
7.4.40.0080.06216.64
7.4.30.0170.08016.66
7.4.10.0100.04614.69
7.4.00.0070.06014.88
7.3.330.0030.02913.08
7.3.320.0070.02713.13
7.3.310.0030.03216.23
7.3.300.0030.03216.37
7.3.290.0000.03516.24
7.3.280.0030.07116.29
7.3.270.0000.06117.40
7.3.260.0140.05416.55
7.3.250.0150.06416.46
7.3.240.0080.06116.45
7.3.230.0140.05516.39
7.3.210.0100.05416.64
7.3.200.0030.09419.39
7.3.190.0100.05416.56
7.3.180.0070.05616.59
7.3.170.0100.08716.37
7.3.160.0100.05616.36
7.3.130.0070.07515.08
7.3.120.0030.05014.64
7.3.110.0130.04715.01
7.3.100.0070.04114.63
7.3.90.0000.04514.70
7.3.80.0030.04214.78
7.3.70.0070.04814.84
7.3.60.0030.04014.65
7.3.50.0000.05114.48
7.3.40.0030.04614.95
7.3.30.0070.04114.82
7.3.20.0070.05516.60
7.3.10.0060.03916.55
7.3.00.0000.04716.43
7.2.330.0130.05416.87
7.2.320.0100.09716.50
7.2.310.0060.06016.55
7.2.300.0100.05516.80
7.2.290.0090.05416.57
7.2.260.0130.06915.26
7.2.250.0030.04914.69
7.2.240.0030.04814.63
7.2.230.0030.05115.29
7.2.220.0000.05115.19
7.2.210.0030.05114.88
7.2.200.0070.04315.06
7.2.190.0030.04715.08
7.2.180.0060.03914.92
7.2.170.0030.04515.07
7.2.160.0100.04115.15
7.2.150.0000.05416.91
7.2.140.0030.04717.00
7.2.130.0070.04817.05
7.2.120.0070.06016.86
7.2.110.0070.04417.08
7.2.100.0030.05716.89
7.2.90.0030.06917.16
7.2.80.0070.04417.02
7.2.70.0000.05216.94
7.2.60.0030.04517.02
7.2.50.0070.04616.86
7.2.40.0070.04617.08
7.2.30.0070.04316.96
7.2.20.0030.04617.02
7.2.10.0100.04016.91
7.2.00.0070.04417.04
7.1.330.0030.04515.65
7.1.320.0070.07015.92
7.1.310.0030.04115.85
7.1.300.0000.05515.90
7.1.290.0030.04115.67
7.1.280.0030.05115.88
7.1.270.0030.04315.70
7.1.260.0070.04415.83
7.1.250.0070.03915.84
7.1.240.0070.04715.82
7.1.230.0030.04415.73
7.1.220.0070.05215.62
7.1.210.0070.04615.75
7.1.200.0020.05315.79
7.1.190.0070.04615.80
7.1.180.0130.03515.83
7.1.170.0100.05415.90
7.1.160.0030.04915.67
7.1.150.0000.04415.88
7.1.140.0030.04315.84
7.1.130.0060.03815.66
7.1.120.0070.03815.94
7.1.110.0030.04515.58
7.1.100.0020.05216.89
7.1.90.0040.04215.73
7.1.80.0070.04715.78
7.1.70.0030.04916.36
7.1.60.0030.06617.36
7.1.50.0030.04915.49
7.1.40.0060.04915.74
7.1.30.0030.05615.70
7.1.20.0070.05815.81
7.1.10.0070.05415.46
7.1.00.0050.10019.15
7.0.330.0090.03815.52
7.0.320.0000.05415.44
7.0.310.0000.06915.08
7.0.300.0030.04315.44
7.0.290.0030.05515.64
7.0.280.0030.04215.20
7.0.270.0070.04715.20
7.0.260.0030.04515.27
7.0.250.0030.04215.22
7.0.240.0000.04515.39
7.0.230.0000.04815.32
7.0.220.0060.03815.01
7.0.210.0130.03515.54
7.0.200.0030.04515.88
7.0.190.0130.03615.10
7.0.180.0030.04315.44
7.0.170.0030.05515.51
7.0.160.0060.04615.46
7.0.150.0030.05215.41
7.0.140.0030.05015.47
7.0.130.0030.04015.20
7.0.120.0040.04315.63
7.0.110.0070.04315.44
7.0.100.0070.06817.76
7.0.90.0050.08417.62
7.0.80.0180.06817.69
7.0.70.0000.09417.71
7.0.60.0030.09117.59
7.0.50.0050.06517.80
7.0.40.0080.08016.82
7.0.30.0070.06016.74
7.0.20.0050.08716.83
7.0.10.0070.08316.73
7.0.00.0030.07916.68
5.6.400.0030.05014.51
5.6.390.0030.06414.40
5.6.380.0100.03814.31
5.6.370.0000.04614.27
5.6.360.0000.05614.46
5.6.350.0060.04514.26
5.6.340.0000.04514.53
5.6.330.0000.04714.50
5.6.320.0030.04014.25
5.6.310.0070.04714.26
5.6.300.0030.06614.34
5.6.290.0030.04614.48
5.6.280.0030.08917.69
5.6.270.0070.04614.25
5.6.260.0030.04614.19
5.6.250.0050.08517.60
5.6.240.0100.09817.44
5.6.230.0020.07917.47
5.6.220.0100.09017.50
5.6.210.0070.05817.41
5.6.200.0030.09117.64
5.6.190.0070.08917.60
5.6.180.0120.08317.69
5.6.170.0050.08917.71
5.6.160.0100.06917.64
5.6.150.0070.08517.71
5.6.140.0130.08017.69
5.6.130.0070.07617.67
5.6.120.0070.06517.65
5.6.110.0100.08117.74
5.6.100.0080.06317.58
5.6.90.0070.07617.57
5.6.80.0200.05617.29
5.6.70.0070.10017.40
5.6.60.0070.08017.26
5.6.50.0080.06017.26
5.6.40.0120.06217.28
5.6.30.0050.05617.36
5.6.20.0070.07417.35
5.6.10.0020.07817.19
5.6.00.0100.05217.27
5.5.380.0030.09717.22
5.5.370.0060.08417.32
5.5.360.0020.07017.40
5.5.350.0050.08117.32
5.5.340.0080.07717.42
5.5.330.0100.09817.52
5.5.320.0030.07317.34
5.5.310.0050.08617.55
5.5.300.0050.06717.49
5.5.290.0170.06117.44
5.5.280.0050.08817.70
5.5.270.0070.08017.36
5.5.260.0050.09217.74
5.5.250.0030.08817.37
5.5.240.0080.07617.22
5.5.230.0050.07317.23
5.5.220.0030.08117.13
5.5.210.0080.06317.20
5.5.200.0050.08317.31
5.5.190.0080.08217.21
5.5.180.0070.08517.24
5.5.170.0070.03614.08
5.5.160.0070.05417.24
5.5.150.0130.07817.30
5.5.140.0030.08817.23
5.5.130.0050.07317.17
5.5.120.0130.07317.04
5.5.110.0170.07517.15
5.5.100.0030.06117.11
5.5.90.0080.08617.04
5.5.80.0070.07816.94
5.5.70.0080.08317.19
5.5.60.0130.07417.06
5.5.50.0070.07717.22
5.5.40.0100.07716.86
5.5.30.0030.08817.13
5.5.20.0000.07017.08
5.5.10.0080.09316.87
5.5.00.0100.06117.16

preferences:
158.14 ms | 403 KiB | 5 Q