3v4l.org

run code in 300+ PHP versions simultaneously
<?php $message = 'Message'; $secret = 'secret'; $hash = hash_hmac('sha256', $message, $secret, true); $encoded = base64_encode($hash); var_dump(hash_equals($hash, $encoded));

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.60.0100.01016.50
8.3.50.0130.00621.95
8.3.40.0070.01018.59
8.3.30.0030.01018.92
8.3.20.0040.00420.34
8.3.10.0080.00021.87
8.3.00.0080.00020.80
8.2.180.0150.00616.75
8.2.170.0150.00022.96
8.2.160.0090.00622.12
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0050.00326.16
8.2.120.0070.00319.54
8.2.110.0080.00322.26
8.2.100.0040.00718.09
8.2.90.0000.00819.05
8.2.80.0060.00317.97
8.2.70.0030.00617.63
8.2.60.0000.00717.80
8.2.50.0030.00518.07
8.2.40.0040.00419.95
8.2.30.0040.00417.91
8.2.20.0000.00817.49
8.2.10.0080.00017.96
8.2.00.0040.00417.55
8.1.280.0140.00725.92
8.1.270.0000.00920.64
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.68
8.1.230.0040.00717.83
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00717.22
8.1.190.0040.00417.23
8.1.180.0070.00018.10
8.1.170.0040.00418.46
8.1.160.0040.00421.85
8.1.150.0070.00318.74
8.1.140.0040.00419.14
8.1.130.0000.00717.92
8.1.120.0100.00017.27
8.1.110.0030.00517.44
8.1.100.0040.00417.20
8.1.90.0000.00717.40
8.1.80.0000.00717.42
8.1.70.0080.00017.35
8.1.60.0050.00517.40
8.1.50.0040.00417.47
8.1.40.0000.00817.50
8.1.30.0000.00817.46
8.1.20.0000.00817.49
8.1.10.0040.00417.30
8.1.00.0000.00717.37
8.0.300.0040.00418.77
8.0.290.0040.00416.58
8.0.280.0030.00518.31
8.0.270.0000.00717.20
8.0.260.0040.00417.05
8.0.250.0000.00616.78
8.0.240.0000.00616.92
8.0.230.0030.00316.86
8.0.220.0050.00216.77
8.0.210.0040.00316.86
8.0.200.0000.00616.89
8.0.190.0030.00516.79
8.0.180.0000.00716.71
8.0.170.0040.00416.89
8.0.160.0080.00016.94
8.0.150.0000.00716.87
8.0.140.0040.00416.80
8.0.130.0000.00513.29
8.0.120.0070.00016.78
8.0.110.0000.00816.84
8.0.100.0080.00016.72
8.0.90.0000.00716.68
8.0.80.0080.00816.86
8.0.70.0040.00416.84
8.0.60.0040.00416.72
8.0.50.0040.00416.69
8.0.30.0100.01316.98
8.0.20.0090.01317.40
8.0.10.0000.00716.85
8.0.00.0090.01316.68
7.4.330.0000.00715.03
7.4.320.0030.00316.55
7.4.300.0030.00316.50
7.4.290.0030.00316.54
7.4.280.0030.00316.45
7.4.270.0000.00616.46
7.4.260.0030.00316.48
7.4.250.0040.00416.40
7.4.240.0020.00516.55
7.4.230.0030.00316.42
7.4.220.0100.01016.47
7.4.210.0030.01116.43
7.4.200.0070.00016.37
7.4.160.0000.01716.34
7.4.150.0110.00717.40
7.4.140.0070.01017.86
7.4.130.0100.00616.43
7.4.120.0150.00516.39
7.4.110.0120.00616.34
7.4.100.0120.00916.50
7.4.90.0120.00416.49
7.4.80.0170.00419.39
7.4.70.0070.01016.36
7.4.60.0090.01316.40
7.4.50.0040.00416.36
7.4.40.0060.01016.48
7.4.30.0040.01816.34
7.4.00.0000.01514.71
7.3.330.0000.00713.05
7.3.320.0030.00312.98
7.3.310.0000.00616.23
7.3.300.0000.00616.12
7.3.290.0000.00716.13
7.3.280.0090.00416.14
7.3.270.0120.00917.40
7.3.260.0100.00716.38
7.3.250.0110.00616.30
7.3.240.0060.01016.24
7.3.230.0180.00516.39
7.3.210.0130.00416.24
7.3.200.0070.01419.39
7.3.190.0160.00016.43
7.3.180.0030.01316.22
7.3.170.0040.01416.27
7.3.160.0190.00316.20
7.2.330.0070.01416.62
7.2.320.0130.00616.58
7.2.310.0130.00416.67
7.2.300.0100.01016.60
7.2.290.0100.01316.38
7.2.110.0130.00716.32
7.2.00.0090.00319.19
7.1.100.0040.01117.86
7.1.70.0040.00717.07
7.1.60.0030.02019.46
7.1.50.0190.01334.74
7.1.00.0070.07322.33
7.0.200.0190.00014.85
7.0.140.0000.05321.95
7.0.60.0070.04019.88
7.0.50.0100.07717.66
7.0.40.0070.04020.20
7.0.30.0330.06720.21
7.0.20.0230.03720.33
7.0.10.0100.08320.04
7.0.00.0070.08720.08
5.6.280.0030.07320.92
5.6.210.0030.05320.70
5.6.200.0070.05018.21
5.6.190.0170.07020.64
5.6.180.0400.06720.64
5.6.170.0230.04320.52
5.6.160.0030.08720.51
5.6.150.0070.03718.21
5.6.140.0130.06718.12
5.6.130.0030.04318.07
5.6.120.0130.06720.89
5.6.110.0030.08020.95
5.6.100.0070.08320.97
5.6.90.0070.05021.02
5.6.80.0030.08720.53
5.5.350.0200.04720.46
5.5.340.0000.09317.95
5.5.330.0030.04020.42
5.5.320.0070.03720.18
5.5.310.0270.03320.31
5.5.300.0070.08018.00
5.5.290.0000.07018.01
5.5.280.0100.07320.79
5.5.270.0070.08320.65
5.5.260.0030.08320.72
5.5.250.0130.07320.60
5.5.240.0030.07720.18
5.4.450.0530.06719.11
5.4.440.1000.05719.45
5.4.430.1070.05319.55
5.4.420.0730.06019.13
5.4.410.1030.05718.97
5.4.400.1000.05719.22
5.4.390.0930.05318.58
5.4.380.0900.05318.49
5.4.370.1000.05318.73
5.4.360.0930.06018.56
5.4.350.1070.05318.58
5.4.340.0900.07318.49
5.4.320.1070.06018.74
5.4.310.1170.05718.59
5.4.300.0870.05318.74
5.4.290.0870.05318.59
5.4.280.0900.05318.58
5.4.270.1070.05018.73
5.4.260.0930.06318.78
5.4.250.1000.08018.67
5.4.240.0930.07018.59
5.4.230.1130.05718.56
5.4.220.1030.05718.76
5.4.210.0900.05718.64
5.4.200.1230.06316.52
5.4.190.1030.06018.47
5.4.180.0230.06018.61
5.4.170.0100.06318.57
5.4.160.0170.07018.71
5.4.150.0630.04718.55
5.4.140.1030.05316.11
5.4.130.1030.05316.06
5.4.120.0870.06016.20
5.4.110.1100.05716.15
5.4.100.1170.05716.21
5.4.90.0930.05016.24
5.4.80.0900.04716.02
5.4.70.0900.05316.09
5.4.60.0870.06316.17
5.4.50.0800.05716.22
5.4.40.0870.05316.33
5.4.30.0870.05016.09
5.4.20.0970.04316.02
5.4.10.0730.06316.18
5.4.00.0930.05015.61
5.3.290.0830.05714.65
5.3.280.0970.05014.50
5.3.270.1000.05314.59
5.3.260.1100.05314.61
5.3.250.1030.05014.64
5.3.240.0970.05714.52
5.3.230.0900.05714.67
5.3.220.0970.05314.64
5.3.210.1030.05714.66
5.3.200.1070.04714.52
5.3.190.0900.05314.48
5.3.180.0930.04314.66
5.3.170.0930.04714.66
5.3.160.0870.05314.47
5.3.150.0900.06014.47
5.3.140.0870.04714.53
5.3.130.0970.06314.52
5.3.120.1030.05014.48
5.3.110.0930.05714.64
5.3.100.0930.06314.01
5.3.90.0830.04714.00
5.3.80.0830.05313.94
5.3.70.0870.05713.99
5.3.60.0930.05314.08
5.3.50.0930.05313.94
5.3.40.1030.05013.85
5.3.30.1000.04313.89
5.3.20.1130.03313.76
5.3.10.0900.05713.75
5.3.00.1000.05313.63
5.2.170.0730.04711.05
5.2.160.0800.03311.17
5.2.150.0730.04711.11
5.2.140.0830.04011.19
5.2.130.1000.03011.13
5.2.120.0930.05011.25
5.2.110.1100.04011.14
5.2.100.0770.04311.03
5.2.90.0800.05011.09
5.2.80.0730.04711.03
5.2.70.0900.03311.14
5.2.60.0830.04011.03
5.2.50.0800.04311.00
5.2.40.0570.04310.94
5.2.30.0800.05710.93
5.2.20.0870.04710.95
5.2.10.0670.04010.89
5.2.00.0200.04010.75
5.1.60.0100.0339.98
5.1.50.0070.03710.02
5.1.40.0030.0409.99
5.1.30.0030.04010.30
5.1.20.0270.04310.33
5.1.10.0630.04010.05
5.1.00.0700.02710.13
5.0.50.0330.0278.54
5.0.40.0270.0308.42
5.0.30.0330.0538.36
5.0.20.0270.0308.32
5.0.10.0300.0278.29
5.0.00.0270.0438.19
4.4.90.0270.0236.23
4.4.80.0330.0176.23
4.4.70.0300.0206.23
4.4.60.0270.0236.23
4.4.50.0370.0136.23
4.4.40.0330.0336.23
4.4.30.0370.0236.23
4.4.20.0270.0236.23
4.4.10.0300.0236.23
4.4.00.0330.0476.23
4.3.110.0330.0306.23
4.3.100.0300.0206.23
4.3.90.0270.0236.23
4.3.80.0330.0376.23
4.3.70.0300.0206.23
4.3.60.0370.0276.23
4.3.50.0270.0236.23
4.3.40.0330.0306.23
4.3.30.0170.0206.23
4.3.20.0170.0306.23
4.3.10.0170.0306.23
4.3.00.0100.02714.42

preferences:
30.41 ms | 401 KiB | 5 Q