3v4l.org

run code in 300+ PHP versions simultaneously
<?php $parametersForSign = array( 'merchant-pos-id' => '185641', 'shop-name' => 'Název obchodu', 'total-amount' => '9.99', 'currency-code' => 'CZK', 'customer-language' => 'cs', 'payment-type' => 'card', 'customer-email' => 'email@exampledomain.com', ); $privateKey = 'db96e2ee781bb2045cc100db82f5944b'; function sigCalculate($parametersForSign, $privateKey) { ksort($parametersForSign); return hash('sha256', implode('', $parametersForSign).$privateKey); } echo sigCalculate($parametersForSign, $privateKey); ?>

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.0140.00718.43
8.3.50.0090.00721.99
8.3.40.0120.00618.70
8.3.30.0120.00418.79
8.3.20.0040.00420.22
8.3.10.0080.00023.70
8.3.00.0000.00718.99
8.2.180.0070.00718.29
8.2.170.0190.00322.96
8.2.160.0080.00622.30
8.2.150.0030.00524.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0080.00020.89
8.2.110.0030.00522.12
8.2.100.0080.00419.57
8.2.90.0000.00819.24
8.2.80.0040.00417.97
8.2.70.0000.00917.59
8.2.60.0020.00517.93
8.2.50.0030.00518.07
8.2.40.0040.00418.03
8.2.30.0070.00018.04
8.2.20.0050.00317.73
8.2.10.0030.00518.03
8.2.00.0000.00717.49
8.1.280.0030.01225.92
8.1.270.0030.00619.00
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0070.00323.92
8.1.230.0030.00718.97
8.1.220.0000.00817.75
8.1.210.0050.00318.77
8.1.200.0000.01117.35
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0000.00818.64
8.1.160.0000.00722.04
8.1.150.0050.00218.92
8.1.140.0050.00317.40
8.1.130.0050.00217.86
8.1.120.0050.00217.48
8.1.110.0030.00517.35
8.1.100.0000.00717.33
8.1.90.0000.00717.34
8.1.80.0070.00017.47
8.1.70.0030.00317.45
8.1.60.0000.00817.44
8.1.50.0030.00517.53
8.1.40.0000.00817.48
8.1.30.0030.00517.53
8.1.20.0000.00917.60
8.1.10.0040.00417.56
8.1.00.0000.00817.29
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.48
8.0.270.0030.00317.15
8.0.260.0030.00317.28
8.0.250.0030.00516.81
8.0.240.0070.00016.83
8.0.230.0070.00016.84
8.0.220.0080.00016.95
8.0.210.0000.00816.89
8.0.200.0000.00616.83
8.0.190.0040.00416.81
8.0.180.0000.00716.97
8.0.170.0040.00416.85
8.0.160.0070.00016.97
8.0.150.0030.00316.71
8.0.140.0000.00716.82
8.0.130.0030.00313.26
8.0.120.0030.00616.85
8.0.110.0040.00416.95
8.0.100.0000.00716.75
8.0.90.0000.00716.68
8.0.80.0120.00316.92
8.0.70.0070.00016.85
8.0.60.0070.00016.76
8.0.50.0000.00716.83
8.0.30.0140.00617.29
8.0.20.0130.00717.40
8.0.10.0070.00016.93
8.0.00.0070.01016.77
7.4.330.0040.00015.03
7.4.320.0030.00316.44
7.4.300.0000.00616.34
7.4.290.0070.00016.51
7.4.280.0000.00816.56
7.4.270.0000.00616.58
7.4.260.0060.00316.43
7.4.250.0050.00316.61
7.4.240.0030.00316.52
7.4.230.0000.00716.61
7.4.220.0090.00916.59
7.4.210.0100.00316.48
7.4.200.0000.00816.65
7.4.160.0090.00616.71
7.4.150.0090.00917.40
7.4.140.0080.01017.86
7.4.130.0090.00716.50
7.4.120.0090.00816.41
7.4.110.0130.00316.49
7.4.100.0100.01316.65
7.4.90.0140.00416.60
7.4.80.0090.01519.39
7.4.70.0030.01316.28
7.4.60.0060.00916.65
7.4.50.0070.00016.39
7.4.40.0000.01616.51
7.4.30.0030.01616.36
7.4.00.0060.00314.89
7.3.330.0050.00013.30
7.3.320.0000.00713.10
7.3.310.0000.00816.27
7.3.300.0000.00616.30
7.3.290.0060.00716.33
7.3.280.0060.01216.33
7.3.270.0090.00917.40
7.3.260.0060.01216.57
7.3.250.0070.01216.52
7.3.240.0070.01016.61
7.3.230.0030.01316.39
7.3.210.0080.01216.59
7.3.200.0100.01319.39
7.3.190.0090.00616.42
7.3.180.0060.00916.41
7.3.170.0100.00716.38
7.3.160.0030.01216.35
7.3.10.0080.00416.59
7.3.00.0080.00316.41
7.2.330.0100.01016.35
7.2.320.0090.00916.74
7.2.310.0130.00316.26
7.2.300.0030.01316.61
7.2.290.0100.00716.63
7.2.130.0080.00816.57
7.2.120.0120.00316.64
7.2.110.0030.00716.63
7.2.100.0000.01116.52
7.2.90.0030.00716.68
7.2.80.0030.01116.38
7.2.70.0060.00316.73
7.2.60.0000.01116.77
7.2.50.0060.00616.55
7.2.40.0000.00916.68
7.2.30.0110.00416.37
7.2.20.0110.00416.63
7.2.10.0000.00916.91
7.2.00.0050.01017.98
7.1.250.0080.00415.53
7.1.100.0830.00716.10
7.1.70.0030.01417.16
7.1.60.0030.01319.46
7.1.50.0250.01534.73
7.1.00.0030.07722.28
7.0.200.0000.00816.53
7.0.140.0000.03722.00
7.0.60.0100.08319.82
7.0.50.0030.08717.84
7.0.40.0070.06720.07
7.0.30.0330.06020.21
7.0.20.0100.04720.09
7.0.10.0070.07320.06
7.0.00.0100.07320.25
5.6.280.0100.06720.99
5.6.210.0130.06320.70
5.6.200.0030.04318.12
5.6.190.0030.08320.41
5.6.180.0370.07320.54
5.6.170.0130.04720.51
5.6.160.0030.04320.57
5.6.150.0070.04318.18
5.6.140.0030.04718.22
5.6.130.0070.08318.14
5.6.120.0130.07721.02
5.6.110.0070.08020.99
5.6.100.0070.08321.00
5.6.90.0070.04020.98
5.6.80.0200.06320.38
5.5.350.3670.04020.37
5.5.340.0000.06017.99
5.5.330.0130.07720.57
5.5.320.0270.07320.38
5.5.310.0230.05720.26
5.5.300.0030.08717.99
5.5.290.0100.06317.99
5.5.280.0070.03720.68
5.5.270.0130.08020.77
5.5.260.0070.05020.77
5.5.250.0170.07720.59
5.5.240.0070.07320.17
5.4.450.0800.04719.61
5.4.440.0830.06019.66
5.4.430.0400.05019.31
5.4.420.0770.04719.56
5.4.410.0670.06019.11
5.4.400.0770.05019.30
5.4.390.0330.04718.73
5.4.380.0200.05718.50
5.4.370.0170.05318.56
5.4.360.0230.04718.57
5.4.350.0130.06018.79
5.4.340.0100.07718.86
5.4.320.0300.06718.80
5.4.310.0330.06318.77
5.4.300.0270.07018.78
5.4.290.0330.05018.50
5.4.280.0270.05018.85
5.4.270.0200.06018.52
5.4.260.0170.05718.83
5.4.250.0230.05318.62
5.4.240.0300.05318.79
5.4.230.0300.04018.83
5.4.220.0200.05318.58
5.4.210.0200.05318.74
5.4.200.0330.03716.70
5.4.190.0200.06018.46
5.4.180.0170.06018.49
5.4.170.0230.06018.73
5.4.160.0200.06018.82
5.4.150.0230.06318.71
5.4.140.0200.05716.29
5.4.130.0230.04716.32
5.4.120.0230.04716.30
5.4.110.0300.04016.33
5.4.100.0130.05716.34
5.4.90.0200.05316.32
5.4.80.0230.04716.40
5.4.70.0200.05316.18
5.4.60.0300.04316.25
5.4.50.0170.07316.39
5.4.40.0200.07316.40
5.4.30.0130.05716.18
5.4.20.0300.05316.29
5.4.10.0130.05316.40
5.4.00.0100.05715.66
5.3.290.0270.04714.89
5.3.280.0370.03714.61
5.3.270.0230.05314.63
5.3.260.0200.05314.63
5.3.250.0200.05314.73
5.3.240.0130.06014.63
5.3.230.0200.06014.70
5.3.220.0170.05314.59
5.3.210.0170.05714.59
5.3.200.0330.04314.59
5.3.190.0200.05314.67
5.3.180.0230.04314.77
5.3.170.0170.05314.80
5.3.160.0230.04714.64
5.3.150.0130.05714.54
5.3.140.0170.05314.55
5.3.130.0270.04314.64
5.3.120.0100.06314.64
5.3.110.0200.05014.54
5.3.100.0230.04314.14
5.3.90.0230.05014.11
5.3.80.0270.04014.02
5.3.70.0200.06314.06
5.3.60.0230.05314.13
5.3.50.0200.05314.11
5.3.40.0030.06713.99
5.3.30.0230.04713.91
5.3.20.0170.05313.89
5.3.10.0170.05013.80
5.3.00.0170.05713.70
5.2.170.0170.04011.24
5.2.160.0130.04711.13
5.2.150.0070.04711.27
5.2.140.0100.04311.34
5.2.130.0130.04311.23
5.2.120.0170.03711.23
5.2.110.0170.03711.16
5.2.100.0170.04311.11
5.2.90.0130.04711.23
5.2.80.0130.04311.32
5.2.70.0130.04311.14
5.2.60.0170.04011.10
5.2.50.0130.04311.05
5.2.40.0100.04710.99
5.2.30.0070.04711.05
5.2.20.0170.03710.95
5.2.10.0130.04010.88
5.2.00.0100.04310.69
5.1.60.0170.03010.00
5.1.50.0100.03710.04
5.1.40.0030.04310.18
5.1.30.0130.03710.55
5.1.20.0200.03010.48
5.1.10.0170.03710.12
5.1.00.0270.03710.06
5.0.50.0030.0438.66
5.0.40.0030.0438.43
5.0.30.0100.0508.34
5.0.20.0170.0278.40
5.0.10.0130.0278.16
5.0.00.0200.0338.14
4.4.90.0100.0205.88
4.4.80.0030.0235.89
4.4.70.0100.0235.87
4.4.60.0130.0235.92
4.4.50.0030.0335.94
4.4.40.0130.0275.91
4.4.30.0170.0135.86
4.4.20.0070.0236.02
4.4.10.0100.0275.95
4.4.00.0070.0475.95
4.3.110.0100.0305.82
4.3.100.0070.0305.80
4.3.90.0070.0235.79
4.3.80.0070.0335.77
4.3.70.0070.0235.83
4.3.60.0070.0205.81
4.3.50.0170.0105.80
4.3.40.0070.0435.88
4.3.30.0070.0204.89
4.3.20.0170.0204.89
4.3.10.0100.0234.89
4.3.00.0070.0277.98

preferences:
45.07 ms | 401 KiB | 5 Q