3v4l.org

run code in 300+ PHP versions simultaneously
<?php $access_key = 'AKIAIOSFODNN7EXAMPLE'; $secret_key = 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'; $string_to_sign = "GET\n\n\nTue, 27 Mar 2007 19:36:42 +0000\n/awsexamplebucket1/photos/puppy.jpg"; echo $access_key . ':' . base64_encode( hash_hmac('sha1', $string_to_sign, $secret_key, 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.4.140.0120.00917.37
8.4.130.0130.00717.59
8.4.120.0110.00920.38
8.4.110.0070.01322.28
8.4.100.0150.00617.43
8.4.90.0120.00818.34
8.4.80.0130.00719.33
8.4.70.0030.00518.00
8.4.60.0070.00518.70
8.4.50.0110.00819.71
8.4.40.0080.00020.57
8.4.30.0080.00318.92
8.4.20.0080.00017.72
8.4.10.0130.00724.04
8.3.270.0110.00816.60
8.3.260.0110.00816.80
8.3.250.0060.00318.73
8.3.240.0140.00516.36
8.3.230.0110.00716.75
8.3.220.0110.00717.33
8.3.210.0030.00416.25
8.3.200.0070.00516.54
8.3.190.0040.00418.90
8.3.180.0060.00216.59
8.3.170.0120.00618.73
8.3.160.0030.01618.20
8.3.150.0070.01320.66
8.3.140.0090.00916.60
8.3.130.0080.00018.35
8.3.120.0060.00320.92
8.3.110.0060.00320.94
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0030.00618.18
8.3.70.0190.00016.38
8.3.60.0070.01318.18
8.3.50.0070.00716.42
8.3.40.0130.00621.85
8.3.30.0150.00018.71
8.3.20.0060.00324.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.290.0150.00420.46
8.2.280.0050.00218.06
8.2.270.0090.00917.28
8.2.260.0050.00320.73
8.2.250.0140.00416.39
8.2.240.0060.00317.16
8.2.230.0030.00622.58
8.2.220.0090.00337.54
8.2.210.0000.01526.77
8.2.200.0090.00016.63
8.2.190.0060.00916.75
8.2.180.0120.00616.35
8.2.170.0070.01018.95
8.2.160.0200.00022.96
8.2.150.0070.00025.66
8.2.140.0070.00424.66
8.2.130.0050.00326.16
8.2.120.0050.00321.05
8.2.110.0060.00319.21
8.2.100.0090.00317.72
8.2.90.0050.00319.22
8.2.80.0000.00917.97
8.2.70.0040.00417.50
8.2.60.0030.00517.93
8.2.50.0050.00518.10
8.2.40.0120.00618.10
8.2.30.0120.00418.10
8.2.20.0050.01118.10
8.2.10.0140.00418.10
8.2.00.0160.00018.10
8.1.330.0140.00522.01
8.1.320.0150.00516.05
8.1.310.0060.00318.59
8.1.300.0030.00618.32
8.1.290.0060.00330.84
8.1.280.0170.00325.92
8.1.270.0070.00024.66
8.1.260.0030.00526.35
8.1.250.0030.00728.09
8.1.240.0080.00820.76
8.1.230.0030.00920.89
8.1.220.0050.00318.77
8.1.210.0000.00719.02
8.1.200.0060.00317.25
8.1.190.0000.00817.41
8.1.180.0040.00418.10
8.1.170.0150.00218.10
8.1.160.0080.00818.10
8.1.150.0130.00318.10
8.1.140.0110.00718.10
8.1.130.0120.00618.10
8.1.120.0130.00718.10
8.1.110.0110.00718.10
8.1.100.0150.00318.10
8.1.90.0120.00418.10
8.1.80.0030.01518.10
8.1.70.0080.00818.10
8.1.60.0160.00318.10
8.1.50.0180.00018.10
8.1.40.0040.01618.10
8.1.30.0090.00918.10
8.1.20.0130.01018.10
8.1.10.0110.00818.10
8.1.00.0170.00318.10
8.0.300.0080.00020.04
8.0.290.0050.00217.16
8.0.280.0120.00418.10
8.0.270.0180.00018.10
8.0.260.0100.00718.10
8.0.250.0000.01818.10
8.0.240.0130.00418.10
8.0.230.0140.00318.10
8.0.220.0130.00518.10
8.0.210.0110.00518.10
8.0.200.0100.00718.10
8.0.190.0110.00618.10
8.0.180.0140.00318.10
8.0.170.0050.01118.10
8.0.160.0160.00018.10
8.0.150.0160.00018.10
8.0.140.0130.00418.10
8.0.130.0140.00318.10
8.0.120.0140.00518.10
8.0.110.0120.00418.10
8.0.100.0120.00418.10
8.0.90.0150.00318.10
8.0.80.0150.00318.10
8.0.70.0130.00318.10
8.0.60.0100.01018.10
8.0.50.0110.00618.10
8.0.30.0080.00818.10
8.0.20.0050.01118.10
8.0.10.0100.00718.10

preferences:
29.03 ms | 403 KiB | 5 Q