3v4l.org

run code in 300+ PHP versions simultaneously
<?php $message = 'Message'; $secret = 'secret'; $hash1 = hash_hmac('sha256', $message, $secret, true); $encoded1 = base64_encode($hash1); $hash2 = base64_decode($encoded1); //$hash2 = hash_hmac('sha256', $message, $secret, true); //$encoded2 = base64_encode($hash2); var_dump(hash_equals($hash1, $hash2));

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.0130.00716.75
8.3.50.0070.01422.09
8.3.40.0120.00318.64
8.3.30.0070.00718.92
8.3.20.0000.00720.16
8.3.10.0050.00321.70
8.3.00.0000.00720.79
8.2.180.0060.00916.32
8.2.170.0070.00718.64
8.2.160.0070.01722.96
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0050.00226.16
8.2.120.0040.00419.83
8.2.110.0060.00321.94
8.2.100.0090.00317.75
8.2.90.0040.00419.28
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.00817.79
8.2.50.0060.00318.07
8.2.40.0000.00718.09
8.2.30.0040.00418.00
8.2.20.0000.00817.63
8.2.10.0070.00018.13
8.2.00.0000.00817.59
8.1.280.0040.01125.92
8.1.270.0040.00420.60
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00623.96
8.1.230.0060.00617.63
8.1.220.0040.00417.76
8.1.210.0030.00518.77
8.1.200.0030.00717.10
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0000.00918.64
8.1.160.0050.00221.97
8.1.150.0110.00018.70
8.1.140.0000.00819.18
8.1.130.0000.00717.83
8.1.120.0030.00717.30
8.1.110.0000.00717.29
8.1.100.0050.00217.27
8.1.90.0070.00017.44
8.1.80.0050.00317.33
8.1.70.0030.00317.41
8.1.60.0060.00317.52
8.1.50.0040.00417.45
8.1.40.0040.00417.38
8.1.30.0080.00017.46
8.1.20.0000.00717.57
8.1.10.0080.00017.42
8.1.00.0040.00417.38
8.0.300.0040.00418.77
8.0.290.0070.00016.63
8.0.280.0050.00318.39
8.0.270.0000.00717.20
8.0.260.0000.00617.25
8.0.250.0070.00016.81
8.0.240.0030.00316.88
8.0.230.0000.00716.85
8.0.220.0000.00716.78
8.0.210.0040.00416.79
8.0.200.0000.00716.87
8.0.190.0040.00416.83
8.0.180.0000.00716.85
8.0.170.0000.00916.87
8.0.160.0060.00316.93
8.0.150.0050.00216.80
8.0.140.0040.00416.85
8.0.130.0000.00513.22
8.0.120.0040.00416.77
8.0.110.0000.00716.86
8.0.100.0000.00716.88
8.0.90.0000.00816.87
8.0.80.0060.01316.81
8.0.70.0020.00516.86
8.0.60.0000.00716.81
8.0.50.0070.00016.86
8.0.30.0130.01016.97
8.0.20.0160.00617.40
8.0.10.0000.00716.86
8.0.00.0080.01216.67
7.4.330.0030.00315.03
7.4.320.0040.00416.37
7.4.300.0030.00316.45
7.4.290.0030.00316.34
7.4.280.0040.00416.39
7.4.270.0000.00816.46
7.4.260.0030.00316.48
7.4.250.0040.00416.43
7.4.240.0030.00316.46
7.4.230.0070.00016.25
7.4.220.0070.01316.64
7.4.210.0090.00516.46
7.4.200.0070.00016.56
7.4.160.0080.00816.60
7.4.150.0120.00617.40
7.4.140.0140.00517.86
7.4.130.0080.00816.49
7.4.120.0120.00516.41
7.4.110.0090.00916.43
7.4.100.0190.00316.36
7.4.90.0080.00916.40
7.4.80.0100.00719.39
7.4.70.0070.01516.32
7.4.60.0000.01516.34
7.4.50.0000.00816.39
7.4.40.0060.00916.30
7.4.30.0170.00716.36
7.4.00.0080.00914.92
7.3.330.0000.00513.02
7.3.320.0060.00013.05
7.3.310.0000.00716.23
7.3.300.0070.00016.11
7.3.290.0000.00716.16
7.3.280.0080.01016.15
7.3.270.0120.00617.40
7.3.260.0160.00616.30
7.3.250.0120.00616.22
7.3.240.0000.01616.32
7.3.230.0110.01216.39
7.3.210.0110.00916.17
7.3.200.0160.00019.39
7.3.190.0060.01016.46
7.3.180.0130.00616.18
7.3.170.0090.01316.27
7.3.160.0070.01016.25
7.3.120.0080.01114.64
7.3.110.0040.01314.56
7.3.100.0090.00614.66
7.3.90.0060.01014.69
7.3.80.0040.00914.61
7.3.70.0070.00514.71
7.3.60.0060.00914.73
7.3.50.0070.00914.61
7.3.40.0040.01014.62
7.3.30.0060.00814.58
7.3.20.0050.01016.45
7.3.10.0040.01016.52
7.3.00.0060.00716.49
7.2.330.0100.01016.52
7.2.320.0140.00416.32
7.2.310.0120.00416.49
7.2.300.0100.00616.60
7.2.290.0070.01016.57
7.2.250.0070.01114.90
7.2.240.0080.01314.86
7.2.230.0080.00814.81
7.2.220.0100.00614.96
7.2.210.0070.00614.95
7.2.200.0050.00814.66
7.2.190.0070.00514.83
7.2.180.0020.01414.87
7.2.170.0080.00514.84
7.2.160.0000.01114.55
7.2.150.0080.00416.69
7.2.140.0110.00416.75
7.2.130.0050.00816.81
7.2.120.0110.00216.72
7.2.110.0050.00816.71
7.2.100.0060.00516.86
7.2.90.0030.01216.79
7.2.80.0070.00916.88
7.2.70.0060.00716.86
7.2.60.0060.00816.79
7.2.50.0060.00716.46
7.2.40.0080.00516.73
7.2.30.0080.00816.68
7.2.20.0060.00816.81
7.2.10.0050.01016.78
7.2.00.0030.01017.45
7.1.330.0080.00715.63
7.1.320.0040.00915.77
7.1.310.0060.00715.78
7.1.300.0040.00815.68
7.1.290.0070.00815.62
7.1.280.0070.00615.74
7.1.270.0080.00815.61
7.1.260.0050.00515.71
7.1.250.0050.00815.60
7.1.240.0090.00015.41
7.1.230.0140.00315.55
7.1.220.0060.01015.73
7.1.210.0070.00715.67
7.1.200.0060.00715.79
7.1.190.0080.00315.55
7.1.180.0090.00615.78
7.1.170.0070.00715.53
7.1.160.0060.00315.75
7.1.150.0110.00415.55
7.1.140.0040.01115.91
7.1.130.0080.00315.74
7.1.120.0030.01415.54
7.1.110.0080.00315.70
7.1.100.0050.00616.95
7.1.90.0110.00415.62
7.1.80.0110.00615.68
7.1.70.0040.00616.45
7.1.60.0040.01517.61
7.1.50.0130.00725.14
7.1.40.0100.00715.48
7.1.30.0030.01215.70
7.1.20.0070.00715.88
7.1.10.0030.01015.86
7.1.00.0020.04318.99
7.0.330.0000.00915.32
7.0.320.0090.00615.52
7.0.310.0000.01515.12
7.0.300.0080.00015.07
7.0.290.0070.00315.28
7.0.280.0040.00415.27
7.0.270.0030.00715.48
7.0.260.0040.01115.37
7.0.250.0040.00715.39
7.0.240.0000.01615.22
7.0.230.0100.00315.20
7.0.220.0100.00715.31
7.0.210.0090.00315.27
7.0.200.0030.00915.01
7.0.190.0080.00515.49
7.0.180.0000.01115.41
7.0.170.0030.01115.45
7.0.160.0070.01115.09
7.0.150.0060.00615.32
7.0.140.0000.03918.81
7.0.130.0050.00515.49
7.0.120.0080.00015.27
7.0.110.0070.00315.22
7.0.100.0030.01015.47
7.0.90.0030.01015.15
7.0.80.0120.00315.29
7.0.70.0070.00415.43
7.0.60.0020.02517.54
7.0.50.0040.03116.65
7.0.40.0060.02916.72
7.0.30.0200.02916.76
7.0.20.0130.02316.83
7.0.10.0070.04616.81
7.0.00.0040.05116.68
5.6.400.0040.00414.30
5.6.390.0000.00814.29
5.6.380.0000.01913.96
5.6.370.0090.00313.97
5.6.360.0040.00714.29
5.6.350.0040.01214.18
5.6.340.0000.01214.55
5.6.330.0070.00714.07
5.6.320.0080.00414.32
5.6.310.0030.01013.97
5.6.300.0070.00714.09
5.6.290.0060.00614.26
5.6.280.0050.04017.71
5.6.270.0030.01414.16
5.6.260.0070.00714.10
5.6.250.0030.00713.93
5.6.240.0040.01214.32
5.6.230.0080.00813.99
5.6.220.0030.00914.27
5.6.210.0020.02617.30
5.6.200.0060.03316.27
5.6.190.0080.02317.21
5.6.180.0150.02717.17
5.6.170.0170.04417.38
5.6.160.0100.04317.30
5.6.150.0080.02216.13
5.6.140.0020.02916.22
5.6.130.0070.03816.12
5.6.120.0080.04017.56
5.6.110.0070.04917.55
5.6.100.0100.04517.54
5.6.90.0120.03817.46
5.6.80.0080.04017.30
5.6.70.0060.01213.95
5.6.60.0120.00014.23
5.6.50.0060.00314.07
5.6.40.0100.00614.48
5.6.30.0000.01113.85
5.6.20.0100.00314.02
5.6.10.0060.00914.01
5.6.00.0030.01014.25
5.5.380.0060.00613.86
5.5.370.0060.00914.29
5.5.360.0030.00914.14
5.5.350.0100.02317.31
5.5.340.0050.02716.03
5.5.330.0070.02317.08
5.5.320.0230.04517.12
5.5.310.0130.02617.31
5.5.300.0070.03115.92
5.5.290.0080.04216.03
5.5.280.0110.04017.38
5.5.270.0090.04417.53
5.5.260.0050.04817.54
5.5.250.0050.02917.36
5.5.240.0040.04117.03
5.5.230.0040.00813.95
5.5.220.0030.01013.82
5.5.210.0030.00614.14
5.5.200.0090.00313.94
5.5.190.0070.00714.18
5.5.180.0000.00914.15
5.5.170.0060.00313.95
5.5.160.0090.00614.09
5.5.150.0000.01413.92
5.5.140.0080.00414.24
5.5.130.0060.00614.24
5.5.120.0060.00314.18
5.5.110.0040.01113.86
5.5.100.0070.01013.63
5.5.90.0040.01114.09
5.5.80.0090.00614.06
5.5.70.0000.01214.19
5.5.60.0000.01113.84
5.5.50.0040.00713.63
5.5.40.0070.00713.98
5.5.30.0000.01814.08
5.5.20.0030.01314.01
5.5.10.0080.00314.25
5.5.00.0080.00413.60
5.4.450.0400.02915.67
5.4.440.0500.04715.76
5.4.430.0380.03015.65
5.4.420.0480.02715.71
5.4.410.0380.03215.51
5.4.400.0410.02815.50
5.4.390.0480.03815.33
5.4.380.0530.03315.21
5.4.370.0380.04115.28
5.4.360.0520.03115.31
5.4.350.0520.03015.32
5.4.340.0480.03115.34
5.4.330.0000.00711.90
5.4.320.0510.04115.23
5.4.310.0620.04715.24
5.4.300.0620.03315.24
5.4.290.0670.03515.24
5.4.280.0540.03315.19
5.4.270.0530.03515.19
5.4.260.0420.03715.21
5.4.250.0480.03315.24
5.4.240.0500.02815.28
5.4.230.0380.03515.27
5.4.220.0460.03215.24
5.4.210.0550.02515.22
5.4.200.0480.02914.25
5.4.190.0460.02315.22
5.4.180.0430.03015.21
5.4.170.0420.02515.27
5.4.160.0400.02815.21
5.4.150.0500.02815.20
5.4.140.0250.03214.09
5.4.130.0440.03114.07
5.4.120.0230.03114.10
5.4.110.0100.03014.03
5.4.100.0400.03313.97
5.4.90.0480.02214.10
5.4.80.0490.02714.12
5.4.70.0520.03114.11
5.4.60.0400.03214.00
5.4.50.0620.03314.02
5.4.40.0560.02814.01
5.4.30.0380.03314.02
5.4.20.0500.02614.11
5.4.10.0410.02813.97
5.4.00.0420.01913.80
5.3.290.1070.06714.55
5.3.280.0730.06714.66
5.3.270.0970.07314.64
5.3.260.0800.07714.62
5.3.250.0900.07014.70
5.3.240.0700.08014.58
5.3.230.0800.06714.57
5.3.220.0830.05714.54
5.3.210.0870.05714.62
5.3.200.0900.06714.54
5.3.190.0970.07314.55
5.3.180.0670.06314.55
5.3.170.0800.05014.55
5.3.160.1000.04714.59
5.3.150.0730.06714.54
5.3.140.1130.05314.64
5.3.130.0800.05014.62
5.3.120.1200.06014.64
5.3.110.1130.06014.66
5.3.100.0870.07014.00
5.3.90.0830.07013.97
5.3.80.0930.06313.91
5.3.70.0930.06013.95
5.3.60.0970.06013.91
5.3.50.0930.05714.04
5.3.40.0930.06013.90
5.3.30.1030.05313.98
5.3.20.0870.04713.66
5.3.10.1000.05713.62
5.3.00.0830.05313.60
5.2.170.0670.05011.13
5.2.160.0800.04311.12
5.2.150.0670.04011.10
5.2.140.0800.04311.09
5.2.130.0770.05711.05
5.2.120.0870.04011.24
5.2.110.0900.05011.13
5.2.100.0830.04011.16
5.2.90.0130.04011.16
5.2.80.0030.04711.15
5.2.70.0070.06011.10
5.2.60.0100.05011.00
5.2.50.0530.05010.95
5.2.40.0700.04311.00
5.2.30.0400.05711.02
5.2.20.0470.04310.98
5.2.10.0670.04310.84
5.2.00.0670.05010.72
5.1.60.0630.04310.05
5.1.50.0670.0409.99
5.1.40.0730.0379.95
5.1.30.0630.03710.31
5.1.20.0570.04710.38
5.1.10.0570.04010.12
5.1.00.0700.04710.09
5.0.50.0170.0378.68
5.0.40.0300.0238.48
5.0.30.0400.0538.24
5.0.20.0370.0238.32
5.0.10.0300.0408.30
5.0.00.0370.0508.27
4.4.90.0300.0305.94
4.4.80.0270.0275.94
4.4.70.0400.0275.94
4.4.60.0370.0275.94
4.4.50.0400.0275.94
4.4.40.0400.0435.94
4.4.30.0400.0305.94
4.4.20.0430.0275.96
4.4.10.0430.0206.02
4.4.00.0500.0335.94
4.3.110.0330.0305.94
4.3.100.0330.0235.94
4.3.90.0400.0235.94
4.3.80.0370.0435.94
4.3.70.0430.0205.94
4.3.60.0330.0305.94
4.3.50.0430.0205.94
4.3.40.0200.0405.94
4.3.30.0070.0275.94
4.3.20.0170.0205.94
4.3.10.0130.0275.94
4.3.00.0100.03014.42

preferences:
51.3 ms | 401 KiB | 5 Q