3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo $secret = '7pgj8Dm6'; echo "\r\n"; $sec = base64_decode($secret); echo $sec; echo "\r\n"; $message = "Message"; echo hash_hmac('sha512', $message, base64_decode($sec), true);

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.0140.00718.43
8.3.50.0140.00521.14
8.3.40.0070.00718.66
8.3.30.0070.00718.54
8.3.20.0050.00318.79
8.3.10.0080.00021.95
8.3.00.0030.00517.80
8.2.180.0150.00618.41
8.2.170.0070.01322.96
8.2.160.0070.00719.37
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00021.00
8.2.120.0100.00326.35
8.2.110.0030.00720.96
8.2.100.0040.00817.93
8.2.90.0060.00319.28
8.2.80.0080.00017.97
8.2.70.0000.00817.63
8.2.60.0050.00317.80
8.2.50.0000.00818.10
8.2.40.0030.00722.33
8.2.30.0000.00720.66
8.2.20.0000.00717.63
8.2.10.0030.00517.99
8.2.00.0040.00418.21
8.1.280.0070.01325.92
8.1.270.0030.00523.91
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0030.00622.03
8.1.230.0090.00318.98
8.1.220.0100.00017.74
8.1.210.0040.00418.77
8.1.200.0070.00317.23
8.1.190.0000.00917.23
8.1.180.0040.00418.10
8.1.170.0040.00418.85
8.1.160.0070.00018.99
8.1.150.0000.00718.73
8.1.140.0070.00019.48
8.1.130.0000.00717.63
8.1.120.0070.00017.37
8.1.110.0000.00717.38
8.1.100.0070.00017.38
8.1.90.0040.00417.26
8.1.80.0000.00717.25
8.1.70.0090.00017.29
8.1.60.0060.00317.46
8.1.50.0030.00517.36
8.1.40.0000.00817.40
8.1.30.0060.00317.54
8.1.20.0000.00717.61
8.1.10.0000.00717.42
8.1.00.0090.00017.50
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.43
8.0.270.0070.00017.34
8.0.260.0080.00017.25
8.0.250.0000.00716.85
8.0.240.0000.00716.95
8.0.230.0070.00016.84
8.0.220.0040.00416.87
8.0.210.0040.00416.70
8.0.200.0000.00616.82
8.0.190.0040.00416.74
8.0.180.0040.00416.82
8.0.170.0000.00716.89
8.0.160.0030.00316.82
8.0.150.0030.00516.74
8.0.140.0000.00716.67
8.0.130.0000.00613.25
8.0.120.0040.00416.83
8.0.110.0040.00416.68
8.0.100.0070.00016.85
8.0.90.0050.00216.84
8.0.80.0150.00416.82
8.0.70.0000.00716.64
8.0.60.0000.00716.84
8.0.50.0030.00616.79
8.0.30.0140.00517.16
8.0.20.0060.01417.40
8.0.10.0030.00516.82
8.0.00.0120.00916.58
7.4.330.0020.00215.08
7.4.320.0060.00016.36
7.4.300.0000.00616.45
7.4.290.0040.00416.54
7.4.280.0000.00716.43
7.4.270.0030.00316.54
7.4.260.0030.00316.49
7.4.250.0040.00416.39
7.4.240.0030.00316.36
7.4.230.0030.00316.62
7.4.220.0100.01616.45
7.4.210.0100.00716.35
7.4.200.0040.00416.54
7.4.160.0080.00816.45
7.4.150.0170.00717.40
7.4.140.0100.00917.86
7.4.130.0150.00516.34
7.4.120.0090.00816.45
7.4.110.0070.01016.36
7.4.100.0130.00716.46
7.4.90.0060.01216.28
7.4.80.0170.00319.39
7.4.70.0030.01716.52
7.4.60.0130.00416.38
7.4.50.0070.00716.41
7.4.40.0060.01016.30
7.4.30.0110.00716.30
7.4.00.0060.01214.75
7.3.330.0030.00313.07
7.3.320.0000.00612.93
7.3.310.0000.00616.20
7.3.300.0030.00316.18
7.3.290.0060.01016.21
7.3.280.0100.00916.22
7.3.270.0140.00417.40
7.3.260.0130.00316.51
7.3.250.0100.01116.39
7.3.240.0130.00616.19
7.3.230.0100.00616.39
7.3.210.0130.00716.48
7.3.200.0110.00619.39
7.3.190.0030.01416.42
7.3.180.0070.01016.49
7.3.170.0130.00316.46
7.3.160.0060.01116.20
7.3.10.0030.01016.59
7.3.00.0130.00016.65
7.2.330.0070.01016.53
7.2.320.0070.01116.40
7.2.310.0120.00616.20
7.2.300.0070.01016.62
7.2.290.0100.00716.59
7.2.130.0090.00316.88
7.2.120.0030.01016.86
7.2.110.0030.00716.82
7.2.100.0060.00616.94
7.2.90.0100.00616.90
7.2.80.0100.00616.61
7.2.70.0080.00617.00
7.2.60.0070.00716.71
7.2.50.0070.01116.91
7.2.40.0080.00817.03
7.2.30.0080.00816.84
7.2.20.0050.00516.83
7.2.10.0120.00416.75
7.2.00.0060.01018.03
7.1.250.0030.01015.81
7.1.200.0030.00915.80
7.1.100.0080.00318.16
7.1.70.0030.00717.03
7.1.60.0120.01219.38
7.1.00.0000.08022.36
7.0.200.0040.01115.13
7.0.60.0330.05019.95
7.0.50.0230.05720.34
7.0.40.0100.05720.35
7.0.30.0330.05720.27
7.0.20.0270.06020.26
7.0.10.0230.06320.34
7.0.00.0270.06720.22
5.6.280.0030.07321.13
5.6.210.0070.09020.52
5.6.200.0030.06721.19
5.6.190.0270.06020.93
5.6.180.0300.07721.16
5.6.170.0230.05721.15
5.6.160.0370.05721.08
5.6.150.0170.06321.11
5.6.140.0430.05021.04
5.6.130.0330.05321.09
5.6.120.0030.06721.14
5.6.110.0300.05721.07
5.6.100.0300.05721.11
5.6.90.0400.05321.06
5.6.80.0300.05020.39
5.6.70.0300.05020.47
5.6.60.0230.05320.47
5.6.50.0300.05720.43
5.6.40.0070.05720.39
5.6.30.0100.06020.40
5.6.20.0300.05320.51
5.6.10.0300.05320.44
5.6.00.0230.06020.43
5.5.350.0200.03720.40
5.5.340.0130.05720.89
5.5.330.0130.05320.85
5.5.320.0200.05721.03
5.5.310.0200.06020.85
5.5.300.0370.05320.84
5.5.290.0330.06320.83
5.5.280.0100.05720.82
5.5.270.0370.05720.86
5.5.260.0330.05720.86
5.5.250.0270.06020.79
5.5.240.0200.06720.22
5.5.230.0170.06320.38
5.5.220.0270.06020.34
5.5.210.0300.05020.24
5.5.200.0100.05720.04
5.5.190.0270.05720.04
5.5.180.0400.04020.15
5.5.160.0370.04320.19
5.5.150.0330.05020.03
5.5.140.0300.05320.18
5.5.130.0270.05720.19
5.5.120.0330.05320.18
5.5.110.0330.05320.19
5.5.100.0170.05020.12
5.5.90.0070.05720.02
5.5.80.0170.04720.24
5.5.70.0400.07720.05
5.5.60.0330.06720.25
5.5.50.0330.05020.12
5.5.40.0330.05720.13
5.5.30.0270.03719.91
5.5.20.0170.05020.13
5.5.10.0100.06020.12
5.5.00.0330.05319.90

preferences:
57.59 ms | 401 KiB | 5 Q