3v4l.org

run code in 300+ PHP versions simultaneously
<?php $post_parameters = array('type' => 'buy', 'amount' => 5.3); $concatted_post_parameters = ''; $http_method = 'METHOD'; $uri = 'API'; $api_key = '789'; $nonce = 555; $secret = '123'; ksort($post_parameters); // Sort parameters by key ascending if (0 < count($post_parameters)) { // Generate URL-encoded query string $concatted_post_parameters = http_build_query($post_parameters, '', '&'); } $hmac_data = implode('#', array($http_method, $uri, $api_key, $nonce, md5($concatted_post_parameters))); $hmac = hash_hmac('sha256', $hmac_data, $secret); print($hmac_data);

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.70.0060.01518.56
8.3.60.0070.01118.30
8.3.50.0120.00721.14
8.3.40.0090.00618.71
8.3.30.0100.00319.09
8.3.20.0040.00420.25
8.3.10.0040.00423.30
8.3.00.0070.00022.38
8.2.190.0130.01016.88
8.2.180.0120.00618.26
8.2.170.0040.01122.96
8.2.160.0130.00722.13
8.2.150.0030.00624.18
8.2.140.0030.00524.66
8.2.130.0000.00826.16
8.2.120.0040.00419.95
8.2.110.0120.00920.46
8.2.100.0040.00718.22
8.2.90.0050.00319.34
8.2.80.0090.00017.97
8.2.70.0060.00317.63
8.2.60.0090.00017.92
8.2.50.0000.00818.07
8.2.40.0040.00421.19
8.2.30.0040.00418.14
8.2.20.0040.00417.70
8.2.10.0040.00418.14
8.2.00.0040.00418.14
8.1.280.0180.00425.92
8.1.270.0040.00420.27
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0100.00022.10
8.1.230.0090.00319.61
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0050.00517.47
8.1.190.0040.00417.23
8.1.180.0040.00418.10
8.1.170.0030.00618.50
8.1.160.0040.00421.93
8.1.150.0040.00418.91
8.1.140.0000.00717.53
8.1.130.0000.00717.63
8.1.120.0030.00317.49
8.1.110.0040.00717.49
8.1.100.0040.00417.39
8.1.90.0040.00417.41
8.1.80.0040.00417.51
8.1.70.0040.00417.48
8.1.60.0000.00817.64
8.1.50.0000.01017.52
8.1.40.0040.00417.57
8.1.30.0000.00917.61
8.1.20.0000.00817.58
8.1.10.0040.00417.43
8.1.00.0060.00317.48
8.0.300.0000.00818.77
8.0.290.0050.00216.63
8.0.280.0000.00718.45
8.0.270.0000.00717.19
8.0.260.0000.00617.28
8.0.250.0030.00617.00
8.0.240.0030.00316.86
8.0.230.0000.00716.88
8.0.220.0030.00316.98
8.0.210.0000.00716.94
8.0.200.0090.00016.88
8.0.190.0000.00716.85
8.0.180.0040.00316.99
8.0.170.0070.00017.02
8.0.160.0080.00016.84
8.0.150.0000.00716.79
8.0.140.0040.00416.93
8.0.130.0000.00613.32
8.0.120.0000.00816.89
8.0.110.0030.00616.86
8.0.100.0040.00417.03
8.0.90.0000.00716.69
8.0.80.0090.00616.86
8.0.70.0000.00816.79
8.0.60.0070.00016.71
8.0.50.0040.00416.93
8.0.30.0050.01217.04
8.0.20.0120.00617.40
8.0.10.0000.00717.04
8.0.00.0120.00816.69
7.4.330.0020.00215.08
7.4.320.0030.00316.66
7.4.300.0060.00016.51
7.4.290.0070.00016.54
7.4.280.0040.00416.64
7.4.270.0030.00316.63
7.4.260.0000.00716.50
7.4.250.0000.00716.44
7.4.240.0000.00716.64
7.4.230.0070.00016.66
7.4.220.0080.01516.73
7.4.210.0060.00916.48
7.4.200.0070.00016.65
7.4.160.0130.00316.46
7.4.150.0110.00717.40
7.4.140.0090.01217.86
7.4.130.0050.01416.53
7.4.120.0090.00716.51
7.4.110.0080.00816.36
7.4.100.0100.01316.63
7.4.90.0100.01016.56
7.4.80.0080.00819.39
7.4.70.0120.00416.62
7.4.60.0140.00316.62
7.4.50.0040.00416.35
7.4.40.0130.00616.43
7.4.30.0100.00716.61
7.4.00.0000.01314.96
7.3.330.0000.00612.98
7.3.320.0000.00713.18
7.3.310.0040.00416.34
7.3.300.0030.00316.33
7.3.290.0100.00516.28
7.3.280.0110.00916.29
7.3.270.0070.01117.40
7.3.260.0200.00416.32
7.3.250.0100.00816.38
7.3.240.0180.00016.69
7.3.230.0070.01016.66
7.3.210.0070.01016.23
7.3.200.0100.00716.66
7.3.190.0070.01016.69
7.3.180.0120.00916.20
7.3.170.0120.00616.45
7.3.160.0160.00316.27
7.3.00.0080.00616.63
7.2.330.0090.00916.47
7.2.320.0030.01316.48
7.2.310.0000.01616.72
7.2.300.0110.00616.45
7.2.290.0100.00716.63
7.2.130.0040.00716.93
7.2.120.0120.00316.66
7.2.110.0040.01117.02
7.2.100.0030.01017.10
7.2.90.0100.00316.81
7.2.80.0070.00716.70
7.2.70.0030.01316.78
7.2.60.0050.00916.78
7.2.50.0060.00616.90
7.2.40.0030.01016.88
7.2.30.0030.00916.89
7.2.20.0000.01316.73
7.2.10.0040.01417.03
7.2.00.0020.00918.13
7.1.250.0060.00615.62
7.1.240.0080.00415.64
7.1.230.0030.00515.58
7.1.220.0060.00315.92
7.1.210.0060.00315.89
7.1.200.0050.00815.69
7.1.190.0060.00915.80
7.1.180.0100.00315.87
7.1.170.0070.01015.62
7.1.160.0060.00615.69
7.1.150.0030.01215.69
7.1.140.0090.00615.76
7.1.130.0000.01015.78
7.1.120.0030.01415.46
7.1.110.0090.00615.70
7.1.100.0030.01116.82
7.1.90.0000.01515.85
7.1.80.0040.01115.88
7.1.70.0000.01016.37
7.1.60.0050.01117.64
7.1.50.0110.00916.42
7.1.40.0030.00715.61
7.1.30.0000.00915.64
7.1.20.0070.00715.51
7.1.10.0100.00315.68
7.1.00.0050.04219.13
7.0.330.0090.00015.14
7.0.320.0060.00615.43
7.0.310.0070.00715.43
7.0.300.0060.00615.57
7.0.290.0110.00415.17
7.0.280.0090.00015.36
7.0.270.0090.00615.21
7.0.260.0100.00715.48
7.0.250.0030.00715.25
7.0.240.0090.00315.28
7.0.230.0040.00715.48
7.0.220.0060.00315.43
7.0.210.0040.00415.29
7.0.200.0150.00515.18
7.0.190.0030.01015.66
7.0.180.0030.00615.44
7.0.170.0040.00815.23
7.0.160.0100.00315.20
7.0.150.0030.01015.47
7.0.140.0090.00615.47
7.0.130.0060.00615.31
7.0.120.0030.00615.42
7.0.110.0060.00615.29
7.0.100.0070.04517.66
7.0.90.0080.04717.70
7.0.80.0050.05017.66
7.0.70.0100.04317.53
7.0.60.0050.04517.99
7.0.50.0080.03618.03
7.0.40.0060.04117.12
7.0.30.0030.03017.09
7.0.20.0130.03617.15
7.0.10.0120.03317.04
7.0.00.0100.04417.07
5.6.380.0070.00714.39
5.6.370.0040.00414.01
5.6.360.0030.01214.47
5.6.350.0060.00613.98
5.6.340.0060.01014.14
5.6.330.0080.00614.56
5.6.320.0030.01314.11
5.6.310.0030.01314.57
5.6.300.0030.00614.26
5.6.290.0040.01114.25
5.6.280.0070.02617.71
5.6.270.0000.01114.13
5.6.260.0030.01014.22
5.6.250.0050.04717.66
5.6.240.0070.04817.46
5.6.230.0050.04517.42
5.6.220.0020.04717.57
5.6.210.0100.03917.57
5.6.200.0120.04017.73
5.6.190.0050.04017.78
5.6.180.0060.04517.65
5.6.170.0030.04217.63
5.6.160.0080.04517.47
5.6.150.0080.03817.46
5.6.140.0080.03517.63
5.6.130.0140.03717.54
5.6.120.0030.05017.68
5.6.110.0130.04017.62
5.6.100.0110.03317.65
5.6.90.0100.04217.72
5.6.80.0080.03917.27
5.6.70.0110.03517.24
5.6.60.0060.03417.34
5.6.50.0050.03317.30
5.6.40.0010.04417.21
5.6.30.0090.04417.18
5.6.20.0030.04417.35
5.6.10.0110.03917.31
5.6.00.0060.04317.39
5.5.380.0090.04015.69
5.5.370.0080.03815.70
5.5.360.0050.04715.85
5.5.350.0030.04315.72
5.5.340.0070.04515.94
5.5.330.0120.03715.93
5.5.320.0050.03215.95
5.5.310.0080.04416.02
5.5.300.0070.04315.91
5.5.290.0050.04716.02
5.5.280.0100.03515.90
5.5.270.0070.04216.02
5.5.260.0020.03315.96
5.5.250.0050.04515.80
5.5.240.0070.03915.69
5.5.230.0050.04115.63
5.5.220.0080.03815.62
5.5.210.0060.02615.61
5.5.200.0080.03515.53
5.5.190.0060.04515.57
5.5.180.0080.04115.71
5.5.170.0060.00611.20
5.5.160.0020.04515.58
5.5.150.0070.03815.70
5.5.140.0050.03915.54
5.5.130.0130.03515.62
5.5.120.0030.04515.63
5.5.110.0090.03515.56
5.5.100.0050.03615.54
5.5.90.0100.03715.56
5.5.80.0070.04315.53
5.5.70.0050.04115.49
5.5.60.0100.03815.57
5.5.50.0100.03715.44
5.5.40.0070.04015.50
5.5.30.0050.03715.51
5.5.20.0070.04215.65
5.5.10.0120.03815.48
5.5.00.0060.02115.52
5.4.450.0030.04915.27
5.4.440.0040.04315.21
5.4.430.0060.03615.07
5.4.420.0060.04015.22
5.4.410.0050.04315.13
5.4.400.0080.03714.91
5.4.390.0070.04015.02
5.4.380.0020.04315.00
5.4.370.0060.03915.01
5.4.360.0080.03814.95
5.4.350.0070.03915.10
5.4.340.0090.03914.99
5.4.330.0040.00711.00
5.4.320.0080.03514.97
5.4.310.0120.02014.95
5.4.300.0070.03814.91
5.4.290.0050.04214.89
5.4.280.0080.03815.02
5.4.270.0020.03215.07
5.4.260.0070.04015.07
5.4.250.0100.03215.04
5.4.240.0070.03615.15
5.4.230.0080.03715.04
5.4.220.0080.03315.12
5.4.210.0080.02215.02
5.4.200.0080.03615.04
5.4.190.0050.04315.14
5.4.180.0000.04715.04
5.4.170.0050.03214.97
5.4.160.0050.02315.05
5.4.150.0020.02915.06
5.4.140.0030.02213.63
5.4.130.0020.02313.65
5.4.120.0030.02313.65
5.4.110.0040.02013.64
5.4.100.0080.01313.71
5.4.90.0050.02213.60
5.4.80.0030.02313.61
5.4.70.0010.02013.66
5.4.60.0080.01613.62
5.4.50.0030.03813.70
5.4.40.0050.02813.70
5.4.30.0070.02213.59
5.4.20.0030.02313.66
5.4.10.0020.03513.78
5.4.00.0050.01713.34
5.3.290.0080.03712.84
5.3.280.0040.03212.71
5.3.270.0050.04412.80
5.3.260.0080.02812.81
5.3.250.0050.02412.74
5.3.240.0130.01512.74
5.3.230.0030.01912.80
5.3.220.0030.02212.76
5.3.210.0050.02212.78
5.3.200.0010.02312.74
5.3.190.0050.01812.72
5.3.180.0030.03312.72
5.3.170.0020.02212.78
5.3.160.0030.02012.78
5.3.150.0060.01912.71
5.3.140.0070.03712.76
5.3.130.0060.03212.74
5.3.120.0020.03612.77
5.3.110.0050.03412.71
5.3.100.0020.02312.52
5.3.90.0040.03012.51
5.3.80.0070.02512.51
5.3.70.0020.02412.40
5.3.60.0020.02212.48
5.3.50.0050.01912.36
5.3.40.0050.03312.44
5.3.30.0030.02012.38
5.3.20.0020.02112.23
5.3.10.0070.01512.33
5.3.00.0080.03212.29
5.2.170.0030.03110.97
5.2.160.0050.01311.09
5.2.150.0040.01711.08
5.2.140.0030.01911.09
5.2.130.0050.01211.06
5.2.120.0060.01311.08
5.2.110.0050.02210.95
5.2.100.0030.02010.97
5.2.90.0020.02910.95
5.2.80.0020.01711.06
5.2.70.0020.01611.08
5.2.60.0060.01411.03
5.2.50.0040.01510.97
5.2.40.0070.01311.00
5.2.30.0000.01910.92
5.2.20.0020.01810.91
5.2.10.0060.01510.88
5.2.00.0020.01710.89
5.1.60.0020.01610.53
5.1.50.0030.01710.55
5.1.40.0020.01510.44
5.1.30.0040.02310.73
5.1.20.0030.01310.68
5.1.10.0020.01510.45
5.1.00.0010.01610.54
5.0.50.0000.01610.04
5.0.40.0020.01510.04
5.0.30.0030.02210.04
5.0.20.0020.01110.04
5.0.10.0000.01210.04
5.0.00.0000.01810.04
4.4.90.0000.01210.04
4.4.80.0000.01210.04
4.4.70.0020.01110.04
4.4.60.0000.01010.04
4.4.50.0020.01010.04
4.4.40.0010.01410.04
4.4.30.0020.00810.04
4.4.20.0000.01210.04
4.4.10.0000.00910.04
4.4.00.0010.01310.04
4.3.110.0020.00810.04
4.3.100.0000.01210.04
4.3.90.0030.01010.04
4.3.80.0010.01310.04
4.3.70.0020.01210.04
4.3.60.0020.01810.04
4.3.50.0030.01710.04
4.3.40.0050.02310.04
4.3.30.0020.02010.04
4.3.20.0000.02210.04
4.3.10.0010.01610.04
4.3.00.0050.01710.04

preferences:
63.74 ms | 401 KiB | 5 Q