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("7:00"); $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.40.0110.00718.73
8.3.30.0030.01018.62
8.3.20.0030.00620.21
8.3.10.0060.00323.62
8.3.00.0080.00017.75
8.2.170.0100.00722.96
8.2.160.0100.00722.13
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0000.00817.63
8.2.110.0090.00021.13
8.2.100.0040.00717.78
8.2.90.0000.00817.63
8.2.80.0000.00817.97
8.2.70.0000.00817.93
8.2.60.0060.00318.04
8.2.50.0040.00418.10
8.2.40.0000.00720.49
8.2.30.0060.00320.66
8.2.20.0050.00317.83
8.2.10.0050.00219.81
8.2.00.0000.00818.13
8.1.270.0090.00023.91
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0070.00323.83
8.1.230.0000.01218.96
8.1.220.0080.00017.79
8.1.210.0030.00518.77
8.1.200.0090.00017.35
8.1.190.0050.00317.38
8.1.180.0000.00818.10
8.1.170.0040.00418.64
8.1.160.0060.00321.87
8.1.150.0030.00518.80
8.1.140.0080.00019.59
8.1.130.0000.00817.63
8.1.120.0030.00517.63
8.1.110.0040.00417.48
8.1.100.0050.00317.60
8.1.90.0050.00317.57
8.1.80.0040.00417.50
8.1.70.0000.00817.49
8.1.60.0000.00817.75
8.1.50.0080.00017.48
8.1.40.0040.00417.56
8.1.30.0000.00817.70
8.1.20.0040.00417.70
8.1.10.0040.00417.61
8.1.00.0070.00317.59
8.0.300.0030.00619.78
8.0.290.0040.00416.75
8.0.280.0070.00018.48
8.0.270.0040.00417.27
8.0.260.0040.00417.28
8.0.250.0040.00417.14
8.0.240.0060.00017.07
8.0.230.0030.00317.17
8.0.220.0000.00816.89
8.0.210.0000.00817.09
8.0.200.0060.00317.14
8.0.190.0040.00417.01
8.0.180.0060.00317.09
8.0.170.0080.00017.09
8.0.160.0000.00717.04
8.0.150.0000.00716.96
8.0.140.0030.00317.03
8.0.130.0060.00013.35
8.0.120.0000.00817.02
8.0.110.0040.00416.94
8.0.100.0040.00417.02
8.0.90.0050.00316.93
8.0.80.0060.01517.03
8.0.70.0000.00717.09
8.0.60.0040.00417.04
8.0.50.0000.00717.16
8.0.30.0060.01317.14
8.0.20.0110.01017.44
8.0.10.0000.00717.07
8.0.00.0080.01016.95
7.4.330.0050.00015.08
7.4.320.0000.00716.49
7.4.300.0000.00616.71
7.4.290.0070.00016.66
7.4.280.0050.00316.78
7.4.270.0000.00616.73
7.4.260.0070.00416.63
7.4.250.0040.00416.60
7.4.240.0030.00516.71
7.4.230.0000.00716.51
7.4.220.0080.01416.73
7.4.210.0070.01016.72
7.4.200.0080.00016.56
7.4.160.0030.01416.50
7.4.150.0100.01317.40
7.4.140.0120.00717.86
7.4.130.0100.00816.57
7.4.120.0100.00716.63
7.4.110.0110.01116.64
7.4.100.0120.00616.84
7.4.90.0100.00716.68
7.4.80.0060.01219.39
7.4.70.0060.00916.60
7.4.60.0130.00616.47
7.4.50.0040.00416.41
7.4.40.0140.00316.90
7.4.30.0090.01316.73
7.4.00.0040.01115.17
7.3.330.0020.00213.11
7.3.320.0030.00313.16
7.3.310.0030.00316.42
7.3.300.0000.00816.39
7.3.290.0000.00716.45
7.3.280.0090.01016.38
7.3.270.0100.00617.40
7.3.260.0140.00316.41
7.3.250.0110.00616.50
7.3.240.0070.01116.51
7.3.230.0100.00616.39
7.3.210.0090.00616.35
7.3.200.0160.00616.45
7.3.190.0110.00716.65
7.3.180.0170.00316.39
7.3.170.0100.00716.52
7.3.160.0080.00916.48
7.3.120.0130.00615.03
7.3.110.0000.02014.93
7.3.100.0080.01114.71
7.3.90.0030.01015.11
7.3.80.0100.00314.76
7.3.70.0050.00514.89
7.3.60.0060.00614.96
7.3.50.0040.00814.81
7.3.40.0060.00615.05
7.3.30.0060.00314.62
7.3.20.0060.00616.77
7.3.10.0040.01616.82
7.3.00.0030.00916.79
7.2.330.0030.01716.48
7.2.320.0120.01216.68
7.2.310.0060.00916.84
7.2.300.0100.01016.80
7.2.290.0100.01016.50
7.2.250.0070.01115.18
7.2.240.0100.01015.30
7.2.230.0060.00914.98
7.2.220.0130.00315.28
7.2.210.0030.01114.99
7.2.200.0110.00415.22
7.2.190.0000.01715.21
7.2.180.0030.01015.23
7.2.170.0030.00715.14
7.2.160.0040.01414.89
7.2.150.0000.01516.99
7.2.140.0100.01016.95
7.2.130.0000.01317.15
7.2.120.0030.01316.98
7.2.110.0030.01416.99
7.2.100.0030.01316.93
7.2.90.0070.00317.11
7.2.80.0080.00816.90
7.2.70.0060.00917.01
7.2.60.0060.00916.78
7.2.50.0030.01517.02
7.2.40.0040.01016.80
7.2.30.0110.00716.91
7.2.20.0060.00917.06
7.2.10.0050.00517.03
7.2.00.0080.00618.21
7.1.330.0060.00915.83
7.1.320.0070.00715.62
7.1.310.0030.00816.00
7.1.300.0030.00915.89
7.1.290.0060.00615.78
7.1.280.0000.01015.86
7.1.270.0120.00415.90
7.1.260.0060.00615.57
7.1.250.0100.00315.84
7.1.240.0100.00315.88
7.1.230.0040.00815.82
7.1.220.0030.00515.76
7.1.210.0100.00316.11
7.1.200.0030.00716.07
7.1.190.0170.00015.78
7.1.180.0120.00315.82
7.1.170.0110.00715.86
7.1.160.0060.00316.04
7.1.150.0100.00715.98
7.1.140.0100.00716.04
7.1.130.0000.01315.87
7.1.120.0130.00015.85
7.1.110.0120.00615.73
7.1.100.0070.00917.19
7.1.90.0080.00016.04
7.1.80.0090.00315.76
7.1.70.0030.01016.61
7.1.60.0070.00717.68
7.1.50.0000.01316.43
7.1.40.0040.00715.82
7.1.30.0060.00615.74
7.1.20.0050.00515.85
7.1.10.0030.00915.93
7.1.00.0050.04319.08
7.0.330.0070.00315.43
7.0.320.0030.00715.50
7.0.310.0040.01115.24
7.0.300.0000.01315.61
7.0.290.0030.01115.62
7.0.280.0160.00015.48
7.0.270.0050.00315.41
7.0.260.0090.00615.35
7.0.250.0030.01315.40
7.0.240.0000.01015.61
7.0.230.0000.01115.68
7.0.220.0060.00615.38
7.0.210.0040.00915.38
7.0.200.0350.00515.16
7.0.190.0070.00415.48
7.0.180.0070.00315.58
7.0.170.0060.00615.56
7.0.160.0070.00315.46
7.0.150.0100.00315.11
7.0.140.0110.00415.37
7.0.130.0030.01215.44
7.0.120.0000.01415.69
7.0.110.0000.00715.57
7.0.100.0040.01115.47
7.0.90.0000.01215.42
7.0.80.0030.00615.50
7.0.70.0040.00815.71
7.0.60.0100.04617.73
7.0.50.0080.02516.73
7.0.40.0110.03416.84
7.0.30.0200.02316.96
7.0.20.0170.02516.83
7.0.10.0080.03116.93
7.0.00.0070.02516.83
5.6.400.0040.01114.25
5.6.390.0060.00914.57
5.6.380.0000.00814.26
5.6.370.0120.00314.50
5.6.360.0070.00714.27
5.6.350.0060.01214.50
5.6.340.0040.01114.55
5.6.330.0070.00714.39
5.6.320.0000.01714.44
5.6.310.0060.00614.29
5.6.300.0030.00614.44
5.6.290.0070.00314.38
5.6.280.0070.02717.65
5.6.270.0070.00714.33
5.6.260.0090.00614.39
5.6.250.0030.00714.49
5.6.240.0000.01114.37
5.6.230.0080.00414.28
5.6.220.0060.00614.54
5.6.210.0070.04417.49
5.6.200.0140.03716.34
5.6.190.0050.05117.34
5.6.180.1820.02517.29
5.6.170.0120.03717.37
5.6.160.0090.03417.32
5.6.150.0070.04216.36
5.6.140.0100.02516.13
5.6.130.0080.02516.25
5.6.120.0090.03317.84
5.6.110.0060.03417.58
5.6.100.0060.02217.57
5.6.90.0130.03317.58
5.6.80.0090.04417.44
5.6.70.0040.00714.20
5.6.60.0030.00914.43
5.6.50.0040.00814.40
5.6.40.0100.00314.58
5.6.30.0040.01114.15
5.6.20.0070.00714.16
5.6.10.0040.00414.46
5.6.00.0110.00314.14
5.5.380.0070.00714.37
5.5.370.0030.00914.44
5.5.360.0060.00614.50
5.5.350.1960.01817.39
5.5.340.0030.02415.97
5.5.330.0100.03817.44
5.5.320.0040.02617.13
5.5.310.0200.02517.22
5.5.300.0070.04216.00
5.5.290.0030.04716.09
5.5.280.0070.03317.56
5.5.270.0070.04517.50
5.5.260.0080.05017.52
5.5.250.0020.04817.47
5.5.240.0030.04417.15
5.5.230.0040.01114.20
5.5.220.0040.01114.27
5.5.210.0090.00613.86
5.5.200.0080.00814.23
5.5.190.0060.00913.93
5.5.180.0060.00614.02
5.5.170.0030.01014.17
5.5.160.0120.00314.36
5.5.150.0100.00314.29
5.5.140.0070.00714.24
5.5.130.0040.01114.23
5.5.120.0030.01014.05
5.5.110.0040.01414.11
5.5.100.0060.00914.13
5.5.90.0060.00614.06
5.5.80.0070.00414.53
5.5.70.0070.00714.30
5.5.60.0000.01214.32
5.5.50.0000.01014.20
5.5.40.0040.01113.85
5.5.30.0030.01014.35
5.5.20.0040.01114.29
5.5.10.0040.00414.15
5.5.00.0030.00614.33
5.4.450.0140.03016.31
5.4.440.0210.03616.37
5.4.430.0080.03816.43
5.4.420.0130.03116.37
5.4.410.0100.02816.25
5.4.400.0060.03116.20
5.4.390.0100.02916.23
5.4.380.0090.03016.09
5.4.370.0350.02716.28
5.4.360.0350.02916.23
5.4.350.0150.03516.21
5.4.340.0210.03016.11
5.4.330.0050.00213.16
5.4.320.0120.03516.20
5.4.310.0130.03416.21
5.4.300.0170.03516.21
5.4.290.0100.03016.15
5.4.280.0100.03216.14
5.4.270.0190.02516.26
5.4.260.0100.04016.15
5.4.250.0210.03016.22
5.4.240.0100.03016.08
5.4.230.0250.03716.19
5.4.220.0120.03016.22
5.4.210.0120.03616.22
5.4.200.0100.03316.07
5.4.190.0170.02816.20
5.4.180.0080.02616.06
5.4.170.0100.02816.14
5.4.160.0130.02516.14
5.4.150.0150.03116.14
5.4.140.0180.02214.83
5.4.130.0120.02714.82
5.4.120.0480.02814.82
5.4.110.0160.02714.92
5.4.100.0250.03014.89
5.4.90.0130.02714.82
5.4.80.0150.02714.91
5.4.70.0120.02714.91
5.4.60.0150.02414.83
5.4.50.0080.03814.79
5.4.40.0220.03514.87
5.4.30.0200.03414.83
5.4.20.0110.03114.78
5.4.10.0210.02614.88
5.4.00.0070.03414.53

preferences:
49.57 ms | 400 KiB | 5 Q