3v4l.org

run code in 300+ PHP versions simultaneously
<?php function calculate_signature($string, $private_key) { $hash = hash_hmac("sha1", $string, $private_key, true); $sig = rawurlencode(base64_encode($hash)); return $sig; } $api_key = "1234"; $private_key = "abcd"; $method = "GET"; $route = "forms/1/entries"; $expires = strtotime("+60 mins"); $string_to_sign = sprintf("%s:%s:%s:%s", $api_key, $method, $route, $expires); $sig = calculate_signature($string_to_sign, $private_key); var_dump($sig); ?>

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.0070.01416.63
8.3.50.0150.01022.11
8.3.40.0090.00918.89
8.3.30.0070.01118.64
8.3.20.0040.00420.16
8.3.10.0030.00623.71
8.3.00.0050.00317.75
8.2.180.0070.01418.54
8.2.170.0040.01122.96
8.2.160.0100.00722.16
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0000.00817.75
8.2.110.0030.00720.38
8.2.100.0040.00817.84
8.2.90.0050.00319.21
8.2.80.0040.00417.97
8.2.70.0080.00417.75
8.2.60.0050.00318.05
8.2.50.0040.00418.09
8.2.40.0040.00422.25
8.2.30.0040.00419.45
8.2.20.0000.00817.89
8.2.10.0000.00818.11
8.2.00.0040.00418.12
8.1.280.0070.01025.92
8.1.270.0080.00024.00
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00324.09
8.1.230.0040.00717.77
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0100.00017.48
8.1.190.0050.00317.38
8.1.180.0040.00418.10
8.1.170.0040.00418.75
8.1.160.0040.00420.88
8.1.150.0040.00418.84
8.1.140.0040.00419.65
8.1.130.0070.00017.73
8.1.120.0040.00417.64
8.1.110.0040.00417.73
8.1.100.0040.00417.61
8.1.90.0050.00217.70
8.1.80.0040.00417.71
8.1.70.0000.00717.58
8.1.60.0080.00017.71
8.1.50.0050.00317.65
8.1.40.0040.00417.62
8.1.30.0000.00817.90
8.1.20.0040.00417.81
8.1.10.0080.00017.54
8.1.00.0110.00017.52
8.0.300.0070.00018.77
8.0.290.0000.00816.85
8.0.280.0070.00018.53
8.0.270.0000.00717.35
8.0.260.0050.00217.23
8.0.250.0000.00717.12
8.0.240.0040.00417.14
8.0.230.0070.00017.15
8.0.220.0050.00317.08
8.0.210.0050.00217.11
8.0.200.0030.00617.15
8.0.190.0040.00417.16
8.0.180.0030.00817.03
8.0.170.0080.00017.11
8.0.160.0040.00417.04
8.0.150.0040.00416.92
8.0.140.0000.00717.04
8.0.130.0030.00313.48
8.0.120.0030.00517.07
8.0.110.0040.00417.00
8.0.100.0000.00717.13
8.0.90.0050.00216.98
8.0.80.0100.01017.02
8.0.70.0080.00016.96
8.0.60.0050.00217.14
8.0.50.0000.00716.96
8.0.30.0170.00217.23
8.0.20.0110.01017.41
8.0.10.0000.00717.13
8.0.00.0090.00817.03
7.4.330.0050.00015.08
7.4.320.0000.00716.74
7.4.300.0070.00016.71
7.4.290.0070.00016.73
7.4.280.0040.00416.63
7.4.270.0060.00016.75
7.4.260.0030.00316.71
7.4.250.0050.00316.75
7.4.240.0070.00016.73
7.4.230.0000.00716.82
7.4.220.0070.01316.91
7.4.210.0080.01016.80
7.4.200.0030.00316.82
7.4.160.0110.00616.53
7.4.150.0130.00617.40
7.4.140.0130.00917.86
7.4.130.0090.00916.71
7.4.120.0150.00716.70
7.4.110.0030.01316.60
7.4.100.0000.02016.52
7.4.90.0030.01316.76
7.4.80.0030.01519.39
7.4.70.0070.01016.70
7.4.60.0120.00916.80
7.4.50.0040.00416.75
7.4.40.0100.01016.49
7.4.30.0180.00416.82
7.4.00.0000.01515.22
7.3.330.0060.00013.35
7.3.320.0000.00513.39
7.3.310.0040.00416.48
7.3.300.0030.00316.45
7.3.290.0000.00616.46
7.3.280.0070.01116.42
7.3.270.0210.00317.40
7.3.260.0000.01616.58
7.3.250.0130.00516.65
7.3.240.0110.00616.60
7.3.230.0000.01516.80
7.3.210.0090.00916.48
7.3.200.0080.00816.50
7.3.190.0110.00616.50
7.3.180.0160.00616.80
7.3.170.0070.01016.48
7.3.160.0060.01016.60
7.2.330.0070.01316.55
7.2.320.0070.01716.80
7.2.310.0180.00616.75
7.2.300.0040.01516.56
7.2.290.0030.01516.84
7.2.60.0060.00617.02
7.2.00.0120.00419.55
7.1.200.0000.00916.09
7.1.100.0070.00718.33
7.1.70.0000.01517.50
7.1.60.0130.00017.38
7.1.50.0060.01617.18
7.1.00.0100.07022.45
7.0.200.0030.01016.85
7.0.120.0130.06322.18
7.0.110.0070.07022.00
7.0.100.0000.06322.03
7.0.90.0030.06722.21
7.0.80.0070.07021.96
7.0.70.0070.06322.16
7.0.60.0030.07322.10
7.0.50.0100.05322.20
7.0.40.0100.05722.08
7.0.30.0030.06722.20
7.0.20.0000.07322.04
7.0.10.0070.07022.01
7.0.00.0030.07321.96
5.6.280.0000.05720.93
5.6.260.0030.07320.88
5.6.250.0070.06721.10
5.6.240.0070.07320.85
5.6.230.0100.07020.87
5.6.220.0000.07720.96
5.6.210.0030.07320.96
5.6.200.0030.07720.95
5.6.190.0070.07321.06
5.6.180.0030.07020.93
5.6.170.0030.06320.83
5.6.160.0030.07320.94
5.6.150.0070.06720.89
5.6.140.0070.07020.92
5.6.130.0030.07321.05
5.6.120.0030.07721.00
5.6.110.0030.07721.07
5.6.100.0100.06720.81
5.6.90.0030.07021.04
5.6.80.0030.07020.31
5.6.70.0030.05020.20
5.6.60.0000.07020.31
5.6.50.0000.07320.21
5.6.40.0000.07320.39
5.6.30.0100.05720.33
5.6.20.0070.06020.20
5.6.10.0030.07020.29
5.6.00.0000.06320.41
5.5.380.0070.06717.58
5.5.370.0070.06317.70
5.5.360.0030.07717.54
5.5.350.0000.07017.50
5.5.340.0030.06318.13
5.5.330.0000.07317.91
5.5.320.0030.07317.91
5.5.310.0000.07718.09
5.5.300.0100.06318.12
5.5.290.0030.07318.12
5.5.280.0070.07318.08
5.5.270.0030.06018.21
5.5.260.0000.08018.08
5.5.250.0000.07317.70
5.5.240.0070.06717.22
5.5.230.0030.06017.32
5.5.220.0070.05017.50
5.5.210.0070.06317.45
5.5.200.0030.06017.57
5.5.190.0000.07017.58
5.5.180.0070.06317.45
5.5.160.0070.06317.44
5.5.150.0030.05717.27
5.5.140.0100.06017.39
5.5.130.0000.07017.27
5.5.120.0030.05717.39
5.5.110.0030.06717.57
5.5.100.0030.07017.17
5.5.90.0070.06317.47
5.5.80.0030.06017.16
5.5.70.0100.06017.20
5.5.60.0000.06717.29
5.5.50.0070.05717.06
5.5.40.0100.06017.30
5.5.30.0000.06317.36
5.5.20.0100.06717.16
5.5.10.0030.07017.14
5.5.00.0030.07017.14
5.4.450.0000.07719.35
5.4.440.0000.07719.26
5.4.430.0030.07019.54
5.4.420.0070.06719.32
5.4.410.0000.07319.41
5.4.400.0000.07019.00
5.4.390.0000.05719.30
5.4.380.0030.06719.00
5.4.370.0030.05719.22
5.4.360.0070.06719.24
5.4.350.0030.06718.93
5.4.340.0000.07319.30
5.4.320.0100.06719.14
5.4.310.0030.06019.16
5.4.300.0070.06319.15
5.4.290.0100.06018.94
5.4.280.0000.07319.15
5.4.270.0000.07019.21
5.4.260.0000.06719.17
5.4.250.0030.06718.96
5.4.240.0000.06719.15
5.4.230.0030.06719.18
5.4.220.0030.06318.96
5.4.210.0030.06019.16
5.4.200.0000.07018.96
5.4.190.0000.06319.31
5.4.180.0070.06319.07
5.4.170.0000.06319.20
5.4.160.0000.07019.22
5.4.150.0070.06018.98
5.4.140.0070.06016.54
5.4.130.0030.06316.52
5.4.120.0000.06716.52
5.4.110.0000.07016.50
5.4.100.0000.06316.54
5.4.90.0000.06716.35
5.4.80.0030.06016.33
5.4.70.0000.06316.54
5.4.60.0000.06316.43
5.4.50.0030.06316.21
5.4.40.0030.06316.43
5.4.30.0000.06316.42
5.4.20.0000.06716.49
5.4.10.0000.07016.48
5.4.00.0070.06016.08

preferences:
54.37 ms | 401 KiB | 5 Q