3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'ololo'; $secret = 'asdfg'; echo hash_hmac('sha256', $str, $secret);

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.40.0110.00418.71
8.3.30.0000.01418.79
8.3.20.0040.00420.04
8.3.10.0040.00423.48
8.3.00.0050.00319.38
8.2.170.0140.00022.96
8.2.160.0000.01320.38
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0150.00426.16
8.2.120.0040.00420.96
8.2.110.0090.00022.18
8.2.100.0110.00018.03
8.2.90.0080.00018.91
8.2.80.0060.00317.97
8.2.70.0040.00417.63
8.2.60.0000.00817.80
8.2.50.0060.00318.07
8.2.40.0050.00319.88
8.2.30.0040.00418.13
8.2.20.0000.00717.67
8.2.10.0050.00318.06
8.2.00.0040.00417.50
8.1.270.0080.00023.98
8.1.260.0050.00226.35
8.1.250.0040.00428.09
8.1.240.0000.00923.80
8.1.230.0090.00319.23
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0060.00317.23
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0040.00418.49
8.1.160.0080.00021.85
8.1.150.0040.00418.73
8.1.140.0040.00417.43
8.1.130.0000.00717.93
8.1.120.0040.00417.39
8.1.110.0090.00017.39
8.1.100.0000.00817.36
8.1.90.0060.00317.39
8.1.80.0000.00717.31
8.1.70.0030.00317.30
8.1.60.0000.00817.39
8.1.50.0050.00217.40
8.1.40.0060.00317.40
8.1.30.0080.00017.54
8.1.20.0000.00817.52
8.1.10.0040.00417.56
8.1.00.0040.00417.42
8.0.300.0050.00318.77
8.0.290.0030.00516.75
8.0.280.0070.00018.43
8.0.270.0030.00317.23
8.0.260.0030.00317.30
8.0.250.0000.00716.86
8.0.240.0030.00317.00
8.0.230.0030.00316.77
8.0.220.0030.00316.76
8.0.210.0000.00716.84
8.0.200.0080.00016.87
8.0.190.0030.00516.98
8.0.180.0040.00416.84
8.0.170.0070.00016.74
8.0.160.0040.00416.91
8.0.150.0030.00316.80
8.0.140.0040.00416.71
8.0.130.0080.00013.21
8.0.120.0030.00716.75
8.0.110.0000.00816.67
8.0.100.0070.00016.68
8.0.90.0040.00416.89
8.0.80.0100.01316.79
8.0.70.0020.00516.66
8.0.60.0040.00416.63
8.0.50.0000.00816.71
8.0.30.0080.01217.14
8.0.20.0100.00917.40
8.0.10.0000.00816.79
8.0.00.0110.00816.77
7.4.330.0050.00015.08
7.4.320.0030.00316.40
7.4.300.0000.00616.50
7.4.290.0050.00316.54
7.4.280.0040.00416.44
7.4.270.0000.00816.59
7.4.260.0030.00616.52
7.4.250.0000.00716.53
7.4.240.0010.00616.52
7.4.230.0040.00416.57
7.4.220.0090.00916.44
7.4.210.0060.01316.49
7.4.200.0050.00216.33
7.4.160.0210.02116.46
7.4.150.0060.01117.40
7.4.140.0100.00717.86
7.4.130.0110.00816.54
7.4.120.0130.00516.48
7.4.110.0000.01616.38
7.4.100.0100.01016.29
7.4.90.0120.00616.34
7.4.80.0100.01019.39
7.4.70.0110.00616.37
7.4.60.0030.01316.37
7.4.50.0000.00916.51
7.4.40.0070.01116.46
7.4.30.0060.00916.17
7.4.00.0060.00614.86
7.3.330.0030.00312.90
7.3.320.0000.00512.98
7.3.310.0080.00016.07
7.3.300.0000.00616.16
7.3.290.0040.01116.20
7.3.280.0060.01116.16
7.3.270.0030.01417.40
7.3.260.0090.01316.14
7.3.250.0120.00816.18
7.3.240.0170.00016.21
7.3.230.0130.00316.39
7.3.210.0090.01316.35
7.3.200.0090.00919.39
7.3.190.0100.01016.28
7.3.180.0100.00616.34
7.3.170.0070.01416.28
7.3.160.0130.00316.02
7.3.120.0090.00614.62
7.3.110.0030.01014.56
7.3.100.0030.01014.38
7.3.90.0030.01014.46
7.3.80.0080.00614.49
7.3.70.0040.01114.53
7.3.60.0080.00414.68
7.3.50.0070.01014.54
7.3.40.0040.01214.57
7.3.30.0090.00614.74
7.3.20.0120.00316.42
7.3.10.0000.01516.49
7.3.00.0070.00716.52
7.2.330.0060.01216.32
7.2.320.0110.00516.29
7.2.310.0070.01116.57
7.2.300.0080.01616.42
7.2.290.0090.01016.52
7.2.240.0100.00714.95
7.2.230.0000.01114.79
7.2.220.0040.00814.95
7.2.210.0040.01115.09
7.2.200.0080.00814.69
7.2.190.0030.01415.04
7.2.180.0060.00614.86
7.2.170.0000.01515.02
7.2.160.0060.00614.92
7.2.150.0030.01316.75
7.2.140.0060.00916.74
7.2.130.0030.01316.78
7.2.120.0030.00816.79
7.2.110.0040.01216.72
7.2.100.0100.00716.66
7.2.90.0040.00816.88
7.2.80.0040.01416.77
7.2.70.0080.01216.57
7.2.60.0040.01216.81
7.2.50.0070.01116.88
7.2.40.0060.00916.64
7.2.30.0070.01016.80
7.2.20.0080.00416.88
7.2.10.0030.00616.61
7.2.00.0090.00617.93
7.1.330.0110.00415.66
7.1.320.0110.00415.44
7.1.310.0040.00815.90
7.1.300.0070.00715.73
7.1.290.0070.01115.76
7.1.280.0100.00715.90
7.1.270.0100.00715.96
7.1.260.0110.00415.77
7.1.250.0030.01015.89
7.1.100.0060.00618.00
7.1.70.0050.00217.16
7.1.60.0110.00717.18
7.1.50.0040.01116.67
7.1.00.0030.07722.35
7.0.200.0000.01716.62
7.0.140.0030.07021.96
7.0.60.0100.04720.02
7.0.50.0100.07717.66
7.0.40.0070.07020.40
7.0.30.0230.05320.00
7.0.20.0270.04319.96
7.0.10.0130.08020.04
7.0.00.0000.05720.16
5.6.280.0070.07020.86
5.6.210.0000.07020.64
5.6.200.0070.08018.21
5.6.190.0100.08320.68
5.6.180.0200.05320.35
5.6.170.0270.05720.50
5.6.160.0030.07320.47
5.6.150.0130.05018.22
5.6.140.0100.07718.10
5.6.130.0030.09318.11
5.6.120.0130.07720.86
5.6.110.0130.07020.97
5.6.100.0030.05721.08
5.6.90.0130.08020.96
5.6.80.0030.06720.38
5.5.350.0230.08320.27
5.5.340.0100.07717.98
5.5.330.0170.07720.23
5.5.320.0170.05020.18
5.5.310.0300.04020.18
5.5.300.0030.07318.00
5.5.290.0070.08317.89
5.5.280.0030.04320.86
5.5.270.0070.03720.75
5.5.260.0030.04320.93
5.5.250.0100.07720.70
5.5.240.0030.08020.34
5.4.450.0300.07319.57
5.4.440.0430.04719.42
5.4.430.0170.04019.41
5.4.420.0270.07319.13
5.4.410.0200.05019.43
5.4.400.0170.04019.06
5.4.390.0200.07319.13
5.4.380.0300.05019.06
5.4.370.0300.08018.92
5.4.360.0130.06318.80
5.4.350.0230.06719.08
5.4.340.0230.06719.24
5.4.320.0370.06019.08
5.4.310.0300.03719.06
5.4.300.0170.06019.19
5.4.290.0270.06718.92
5.4.280.0230.07319.08
5.4.270.0200.04019.08
5.4.260.0200.08019.13
5.4.250.0200.07719.07
5.4.240.0230.04718.80
5.4.230.0130.05019.23
5.4.220.0270.05018.89
5.4.210.0130.04718.80
5.4.200.0230.07019.09
5.4.190.0200.05719.20
5.4.180.0230.06018.77
5.4.170.0300.03318.87
5.4.160.0200.07318.80
5.4.150.0300.07019.22
5.4.140.0200.04016.16
5.4.130.0330.06016.43
5.4.120.0300.06716.35
5.4.110.0130.04016.49
5.4.100.0200.07316.04
5.4.90.0170.05316.48
5.4.80.0130.04716.42
5.4.70.0270.06716.46
5.4.60.0170.07316.20
5.4.50.0170.03316.36
5.4.40.0270.06716.36
5.4.30.0170.05716.36
5.4.20.0200.06316.34
5.4.10.0200.07016.03
5.4.00.0230.04715.88
5.3.290.0200.04314.64
5.3.280.0200.07014.54
5.3.270.0530.03014.46
5.3.260.0230.06714.43
5.3.250.0170.07314.63
5.3.240.0230.04714.45
5.3.230.0200.05314.54
5.3.220.0230.06014.50
5.3.210.0230.06014.46
5.3.200.0430.06314.51
5.3.190.0200.04314.47
5.3.180.0070.05714.42
5.3.170.0230.03314.40
5.3.160.0230.07314.54
5.3.150.0170.05314.43
5.3.140.0200.06714.50
5.3.130.0230.07314.38
5.3.120.0300.06314.47
5.3.110.0130.05314.47
5.3.100.0230.05713.91
5.3.90.0230.03313.86
5.3.80.0230.06013.97
5.3.70.0170.06013.95
5.3.60.0230.04313.85
5.3.50.0270.06313.80
5.3.40.0270.06713.74
5.3.30.0200.06313.70
5.3.20.0170.07013.62
5.3.10.0200.05713.45
5.3.00.0300.02713.61
5.2.170.0200.05312.59
5.2.160.0300.03312.59
5.2.150.0200.05712.59
5.2.140.0200.05312.59
5.2.130.0130.03312.59
5.2.120.0200.05712.59
5.2.110.0230.05712.59
5.2.100.0200.02312.59
5.2.90.0200.03712.59
5.2.80.0230.05312.59
5.2.70.0200.04712.59
5.2.60.0170.03712.59
5.2.50.0170.05312.59
5.2.40.0230.05712.59
5.2.30.0200.05312.59
5.2.20.0100.06312.59
5.2.10.0130.04312.59
5.2.00.0100.04312.59
5.1.60.0130.03012.59
5.1.50.0130.04012.59
5.1.40.0230.03312.59
5.1.30.0230.02712.59
5.1.20.0100.05712.59
5.1.10.0200.04012.59
5.1.00.0200.04712.59
5.0.50.0100.04012.59
5.0.40.0070.04312.59
5.0.30.0070.05012.59
5.0.20.0100.03712.59
5.0.10.0130.03712.59
5.0.00.0100.06012.59
4.4.90.0030.03012.59
4.4.80.0070.03712.59
4.4.70.0030.02712.59
4.4.60.0070.02712.59
4.4.50.0130.02012.59
4.4.40.0030.05012.59
4.4.30.0100.03712.59
4.4.20.0130.03312.59
4.4.10.0100.03012.59
4.4.00.0100.05712.59
4.3.110.0100.03012.59
4.3.100.0070.02312.59
4.3.90.0100.02312.59
4.3.80.0070.04012.59
4.3.70.0100.02712.59
4.3.60.0070.02712.59
4.3.50.0130.03012.59
4.3.40.0100.03312.59
4.3.30.0070.02312.59
4.3.20.0000.01712.59
4.3.10.0030.01312.59
4.3.00.0030.01712.59

preferences:
42.62 ms | 400 KiB | 5 Q