3v4l.org

run code in 300+ PHP versions simultaneously
<?php function signRequest($domain, $method, $public_key, $private_key, $data=array()){ $data = array_filter($data); // Normalise data if(array_key_exists('request_timestamp', $data)) { $data['request_timestamp'] = (int) $data['request_timestamp']; } ksort($data); $data = json_encode($data); $buffer = array($domain, $method, $data, $public_key); $buffer_str = implode(":", $buffer); return hash_hmac('sha256', $buffer_str, $private_key); } echo signRequest("neom.dev", "products", "c7912e9a71d7208f", "767f791f93a272d3f4554116", []);

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.0190.00316.60
8.3.50.0110.00418.43
8.3.40.0170.00718.57
8.3.30.0090.00618.75
8.3.20.0070.00720.34
8.3.10.0080.00020.91
8.3.00.0040.00419.20
8.2.180.0090.00616.75
8.2.170.0120.00622.96
8.2.160.0070.01320.57
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00420.99
8.2.120.0040.00426.35
8.2.110.0070.00420.94
8.2.100.0060.00617.84
8.2.90.0000.00819.05
8.2.80.0090.00017.97
8.2.70.0050.00317.63
8.2.60.0050.00517.92
8.2.50.0060.00318.16
8.2.40.0040.00420.55
8.2.30.0000.00719.21
8.2.20.0000.00818.11
8.2.10.0040.00418.02
8.2.00.0000.00717.99
8.1.280.0110.00425.92
8.1.270.0070.00023.92
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00022.75
8.1.230.0040.00722.13
8.1.220.0000.00817.74
8.1.210.0030.00518.77
8.1.200.0030.00617.25
8.1.190.0000.00817.35
8.1.180.0000.00818.10
8.1.170.0000.00818.49
8.1.160.0070.00018.91
8.1.150.0040.00420.29
8.1.140.0000.00819.60
8.1.130.0000.00718.88
8.1.120.0000.00717.46
8.1.110.0030.00617.43
8.1.100.0070.00417.46
8.1.90.0000.00817.52
8.1.80.0040.00417.45
8.1.70.0030.00517.44
8.1.60.0000.00817.64
8.1.50.0030.00517.54
8.1.40.0040.00417.44
8.1.30.0040.00417.56
8.1.20.0000.00817.63
8.1.10.0000.00817.51
8.1.00.0030.00617.40
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0000.00718.52
8.0.270.0000.00817.28
8.0.260.0040.00418.92
8.0.250.0050.00216.97
8.0.240.0040.00417.01
8.0.230.0000.00716.95
8.0.220.0000.00716.94
8.0.210.0080.00016.94
8.0.200.0000.01017.02
8.0.190.0070.00016.88
8.0.180.0000.00716.83
8.0.170.0000.00716.82
8.0.160.0070.00016.83
8.0.150.0050.00216.86
8.0.140.0050.00316.92
8.0.130.0060.00013.37
8.0.120.0050.00216.84
8.0.110.0070.00016.75
8.0.100.0000.00816.71
8.0.90.0050.00216.86
8.0.80.0060.00916.96
8.0.70.0040.00416.98
8.0.60.0040.00416.81
8.0.50.0000.00716.89
8.0.30.0030.01516.99
8.0.20.0140.00717.40
8.0.10.0040.00416.91
8.0.00.0110.01816.57
7.4.330.0030.00315.55
7.4.320.0000.00616.48
7.4.300.0030.00316.54
7.4.290.0000.00716.66
7.4.280.0040.00416.42
7.4.270.0060.00016.61
7.4.260.0060.00316.44
7.4.250.0000.00716.57
7.4.240.0030.00316.63
7.4.230.0030.00316.65
7.4.220.0130.00316.64
7.4.210.0130.00316.39
7.4.200.0030.00416.73
7.4.160.0110.00516.55
7.4.150.0090.00917.40
7.4.140.0130.00417.86
7.4.130.0090.00916.59
7.4.120.0140.00716.48
7.4.110.0120.00916.62
7.4.100.0100.00716.51
7.4.90.0030.01316.43
7.4.80.0100.00719.39
7.4.70.0070.01016.46
7.4.60.0130.00316.42
7.4.50.0100.00616.70
7.4.40.0070.01016.43
7.4.30.0120.00416.49
7.4.00.0090.01015.20
7.3.330.0050.00013.31
7.3.320.0000.00513.31
7.3.310.0000.00616.23
7.3.300.0040.00416.19
7.3.290.0090.00716.34
7.3.280.0090.00716.31
7.3.270.0080.00817.40
7.3.260.0080.01216.52
7.3.250.0100.00916.44
7.3.240.0100.00816.44
7.3.230.0130.00316.52
7.3.210.0030.01416.28
7.3.200.0100.00616.51
7.3.190.0100.00616.41
7.3.180.0030.01316.36
7.3.170.0090.00616.32
7.3.160.0150.00616.54
7.3.120.0070.01315.08
7.3.110.0150.00315.00
7.3.100.0030.01014.89
7.3.90.0120.00414.93
7.3.80.0070.01014.65
7.3.70.0080.00414.79
7.3.60.0140.00014.65
7.3.50.0090.00914.77
7.3.40.0130.00614.64
7.3.30.0040.00715.00
7.3.20.0100.00716.45
7.3.10.0130.00316.76
7.3.00.0030.01016.77
7.2.330.0100.01316.46
7.2.320.0130.01016.66
7.2.310.0100.00716.80
7.2.300.0030.01316.76
7.2.290.0100.00716.39
7.2.250.0040.01515.20
7.2.240.0030.01714.64
7.2.230.0090.00614.84
7.2.220.0120.00315.31
7.2.210.0100.01014.90
7.2.200.0060.00915.11
7.2.190.0070.01015.15
7.2.180.0100.01015.19
7.2.170.0080.00614.95
7.2.60.0130.00016.77
7.1.330.0040.01116.05
7.1.320.0070.00716.04
7.1.310.0070.00715.94
7.1.300.0110.00415.76
7.1.290.0090.00915.76
7.1.280.0070.00715.85
7.1.270.0060.00315.84
7.1.260.0040.01115.85
7.1.200.0030.00315.94
7.1.90.0030.01017.97
7.1.80.0070.00718.01
7.1.70.0060.01017.23
7.1.60.0180.01034.93
7.1.50.0180.00934.50
7.1.40.0190.00934.40
7.1.30.0140.01434.41
7.1.20.0070.02134.61
7.1.10.0030.01016.63
7.1.00.0030.01016.65
7.0.230.0070.00717.78
7.0.220.0000.01417.44
7.0.210.0090.00616.76
7.0.200.0030.00916.77
7.0.190.0060.00616.73
7.0.180.0060.00916.20
7.0.170.0000.01616.25
7.0.160.0030.01316.30
7.0.150.0040.00816.16
7.0.140.0030.00916.34
7.0.130.0030.01116.58
7.0.120.0030.01316.44
7.0.110.0060.01316.25
7.0.100.0090.00916.39
7.0.90.0030.01316.35
7.0.80.0030.01016.41
7.0.70.0030.01216.48
7.0.60.0060.00916.15
7.0.50.0080.00816.31
7.0.40.0050.00816.41
7.0.30.0030.01016.60
7.0.20.0040.00816.54
7.0.10.0040.00916.41
7.0.00.0000.01316.23

preferences:
60.26 ms | 400 KiB | 5 Q