3v4l.org

run code in 300+ PHP versions simultaneously
<?php print hash_hmac('sha1', data, 'a'); print hash_hmac('sha1', data, 'ab');

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.0140.00016.63
8.3.60.0160.00316.73
8.3.50.0190.00517.42
8.3.40.0130.00318.82
8.3.30.0090.00618.79
8.3.20.0050.00318.52
8.3.10.0060.00318.90
8.3.00.0060.00319.51
8.2.180.0060.00916.50
8.2.170.0150.00022.96
8.2.160.0090.00918.86
8.2.150.0090.00024.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0040.00420.83
8.2.110.0000.01020.96
8.2.100.0040.00819.65
8.2.90.0080.00019.07
8.2.80.0040.00417.97
8.2.70.0080.00017.50
8.2.60.0000.00818.05
8.2.50.0090.00018.10
8.2.40.0000.00818.07
8.2.30.0080.00017.75
8.2.20.0090.00017.72
8.2.10.0060.00317.70
8.2.00.0000.00717.77
8.1.280.0170.00725.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0040.00422.72
8.1.230.0110.00017.70
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0030.00717.23
8.1.190.0080.00017.13
8.1.180.0040.00418.10
8.1.170.0050.00318.66
8.1.160.0030.00518.90
8.1.150.0040.00418.62
8.1.140.0040.00417.34
8.1.130.0040.00419.21
8.1.120.0050.00217.38
8.1.110.0070.00017.33
8.1.100.0000.00817.27
8.1.90.0040.00417.43
8.1.80.0000.00717.44
8.1.70.0000.00817.33
8.1.60.0040.00417.40
8.1.50.0060.00317.33
8.1.40.0040.00417.50
8.1.30.0050.00317.54
8.1.20.0000.00717.64
8.1.10.0070.00017.42
8.1.00.0040.00417.40
8.0.300.0060.00318.77
8.0.290.0070.00016.63
8.0.280.0000.00718.36
8.0.270.0030.00317.17
8.0.260.0070.00016.88
8.0.250.0050.00316.99
8.0.240.0030.00317.04
8.0.230.0070.00016.89
8.0.220.0030.00316.95
8.0.210.0070.00016.86
8.0.200.0070.00016.93
8.0.190.0000.00716.88
8.0.180.0000.01016.96
8.0.170.0000.00916.88
8.0.160.0030.00317.01
8.0.150.0050.00316.81
8.0.140.0060.00316.96
8.0.130.0000.00513.46
8.0.120.0030.00616.74
8.0.110.0000.00717.01
8.0.100.0020.00516.94
8.0.90.0050.00316.94
8.0.80.0040.01616.95
8.0.70.0030.00617.06
8.0.60.0030.00616.89
8.0.50.0000.00816.94
8.0.30.0130.00616.91
8.0.20.0130.00517.01
8.0.10.0040.00416.84
8.0.00.0100.01416.79
7.4.330.0000.00512.84
7.4.320.0000.00616.52
7.4.300.0070.00016.52
7.4.290.0030.00316.48
7.4.280.0040.00716.38
7.4.270.0000.00816.36
7.4.260.0050.00013.26
7.4.250.0030.00516.53
7.4.240.0070.00016.59
7.4.230.0030.00816.55
7.4.220.0090.00916.58
7.4.210.0090.00916.50
7.4.200.0030.00516.54
7.4.190.0050.00316.62
7.4.160.0070.00716.35
7.4.150.0080.00816.27
7.4.140.0110.00716.46
7.4.130.0120.01216.32
7.4.120.0090.00916.34
7.4.110.0090.00916.59
7.4.100.0090.00916.48
7.4.90.0150.00316.48
7.4.80.0100.00716.43
7.4.70.0070.01016.57
7.4.60.0110.00516.44
7.4.50.0050.00016.34
7.4.40.0060.00916.34
7.4.30.0070.01316.41
7.4.00.0040.01414.64
7.3.330.0000.00613.19
7.3.320.0000.00512.98
7.3.310.0000.00716.15
7.3.300.0030.00316.16
7.3.290.0090.00716.17
7.3.280.0070.01116.14
7.3.270.0060.01616.46
7.3.260.0000.01816.35
7.3.250.0110.00916.49
7.3.240.0130.00316.36
7.3.230.0100.00616.25
7.3.210.0110.00616.37
7.3.200.0120.00419.39
7.3.190.0080.00816.41
7.3.180.0080.00816.35
7.3.170.0080.00816.39
7.3.160.0130.00316.43
7.3.120.0080.01114.59
7.3.110.0100.00714.82
7.3.100.0030.00614.81
7.3.90.0070.00714.77
7.3.80.0060.00614.73
7.3.70.0080.00714.90
7.3.60.0070.00714.81
7.3.50.0030.01214.50
7.3.40.0030.01014.59
7.3.30.0080.00314.73
7.3.20.0080.00416.63
7.3.10.0000.01016.57
7.3.00.0100.00716.44
7.2.330.0100.01016.55
7.2.320.0070.01016.37
7.2.310.0050.01316.71
7.2.300.0080.00816.28
7.2.290.0180.00016.57
7.2.250.0040.01514.84
7.2.240.0130.00614.97
7.2.230.0040.01114.89
7.2.220.0040.00515.01
7.2.210.0090.00014.87
7.2.200.0060.00914.77
7.2.190.0030.01014.82
7.2.180.0040.01114.85
7.2.170.0070.00714.76
7.2.60.0070.00716.47
7.2.00.0090.00619.14
7.1.330.0060.00915.69
7.1.320.0040.00415.73
7.1.310.0030.01015.72
7.1.300.0070.00715.66
7.1.290.0070.00715.49
7.1.280.0070.01015.63
7.1.270.0000.01715.85
7.1.260.0070.01015.67
7.1.200.0060.00615.64
7.1.100.0330.01115.98
7.1.70.0070.00716.91
7.1.60.0170.00719.30
7.1.50.0070.00716.52
7.1.00.0000.04722.48
7.0.200.0000.00716.43
7.0.140.0000.07721.98
7.0.120.0000.07721.96
7.0.60.0030.07019.85
7.0.50.0170.06017.79
7.0.40.0030.05320.08
7.0.30.0430.05720.20
7.0.20.0130.04320.12
7.0.10.0270.05320.09
7.0.00.0070.08320.29
5.6.280.0000.07721.07
5.6.210.0000.04320.54
5.6.200.0130.06718.21
5.6.190.0100.03720.56
5.6.180.0200.07020.56
5.6.170.0370.04020.54
5.6.160.0070.08020.51
5.6.150.0070.06318.16
5.6.140.0000.05318.07
5.6.130.0070.04318.22
5.6.120.0030.04320.97
5.6.110.0170.05321.02
5.6.100.0030.08720.94
5.6.90.0070.06320.87
5.6.80.0030.08320.50
5.6.70.4970.02720.34
5.5.350.0470.06020.43
5.5.340.0130.07717.97
5.5.330.0070.06320.40
5.5.320.0170.05020.41
5.5.310.0300.07020.28
5.5.300.0030.04017.98
5.5.290.0070.08017.87
5.5.280.0000.05320.75
5.5.270.0100.04020.79
5.5.260.0100.05020.79
5.5.250.0130.08020.68
5.5.240.0170.07020.18
5.4.450.0030.07319.50
5.4.440.0100.08019.28
5.4.430.0000.05019.50
5.4.420.0070.05319.40
5.4.410.0100.07719.20
5.4.400.0030.07719.12
5.4.390.0100.05719.15
5.4.380.0000.08319.08
5.4.370.0100.06019.18
5.4.360.0100.07319.15
5.4.350.0030.08319.09
5.4.340.0130.07019.01
5.4.320.0000.05718.91
5.4.310.0070.07318.81
5.4.300.0070.04019.14
5.4.290.0070.08019.08
5.4.280.0100.07319.08
5.4.270.0100.04019.18
5.4.260.0070.05019.14
5.4.250.0070.05719.14
5.4.240.0130.07319.17
5.4.230.0130.07019.15
5.4.220.0130.03319.11
5.4.210.0000.04718.91
5.4.200.0030.07718.92
5.4.190.0130.05719.17
5.4.180.0100.06319.12
5.4.170.0030.06719.16
5.4.160.0100.05319.09
5.4.150.0170.06318.89
5.4.140.0130.07016.35
5.4.130.0030.04716.24
5.4.120.0030.05016.36
5.4.110.0130.05716.39
5.4.100.0100.03316.27
5.4.90.0000.06716.23
5.4.80.0070.03316.13
5.4.70.0100.05016.31
5.4.60.0070.05716.24
5.4.50.0100.06716.24
5.4.40.0030.05016.39
5.4.30.0070.03716.27
5.4.20.0000.05716.25
5.4.10.0070.04716.34
5.4.00.0070.04715.69
5.3.290.0100.07314.56
5.3.280.0030.07714.41
5.3.270.0030.06014.42
5.3.260.0030.05714.53
5.3.250.0170.06714.42
5.3.240.0030.06014.42
5.3.230.0100.04014.68
5.3.220.0100.07314.52
5.3.210.0070.06714.57
5.3.200.0070.03714.50
5.3.190.0030.07314.48
5.3.180.0030.07714.43
5.3.170.0100.07314.49
5.3.160.0030.05314.35
5.3.150.0170.06714.48
5.3.140.0070.07714.49
5.3.130.0070.05714.44
5.3.120.0070.08014.47
5.3.110.0070.05314.48
5.3.100.0070.04013.96
5.3.90.0070.04314.11
5.3.80.0070.07314.10
5.3.70.0130.06713.97
5.3.60.0000.05313.98
5.3.50.0100.06713.88
5.3.40.0070.07013.86
5.3.30.0070.07313.74
5.3.20.0070.04013.62
5.3.10.0130.04313.59
5.3.00.0000.05313.45
5.2.170.0000.04311.04
5.2.160.0000.05711.07
5.2.150.0000.07011.30
5.2.140.0030.06310.96
5.2.130.0030.03010.98
5.2.120.0170.05011.07
5.2.110.0030.06311.07
5.2.100.0070.06010.95
5.2.90.0070.06011.08
5.2.80.0030.06710.91
5.2.70.0000.03311.17
5.2.60.0100.06011.03
5.2.50.0030.06310.98
5.2.40.0030.03710.98
5.2.30.0000.05310.97
5.2.20.0030.04010.80
5.2.10.0030.04310.90
5.2.00.0000.03310.57
5.1.60.0030.04310.01
5.1.50.0030.0479.98
5.1.40.0100.0539.81
5.1.30.0030.05710.29
5.1.20.0030.03710.33
5.1.10.0000.04010.05
5.1.00.0070.02710.04
5.0.50.0030.0378.52
5.0.40.0070.0208.41
5.0.30.0030.0378.36
5.0.20.0070.0408.36
5.0.10.0030.0208.36
5.0.00.0000.0638.36
4.4.90.0030.0138.36
4.4.80.0030.0378.36
4.4.70.0000.0178.36
4.4.60.0030.0238.36
4.4.50.0000.0208.36
4.4.40.0100.0278.36
4.4.30.0100.0108.36
4.4.20.0000.0408.36
4.4.10.0000.0378.36
4.4.00.0000.0578.36
4.3.110.0000.0278.36
4.3.100.0030.0178.36
4.3.90.0070.0308.36
4.3.80.0030.0438.36
4.3.70.0030.0278.36
4.3.60.0000.0308.36
4.3.50.0070.0238.36
4.3.40.0070.0278.36
4.3.30.0030.0278.36
4.3.20.0030.0378.36
4.3.10.0000.0308.36
4.3.00.0000.0178.36

preferences:
48.48 ms | 401 KiB | 5 Q