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', 'customer-email' => 'email@exampledomain.com', ); $privateKey = 'db96e2ee781bb2045cc100db82f5944b'; function sigCalculate($parametersForSign, $privateKey) { ksort($parametersForSign); echo implode('', $parametersForSign) . "\n"; 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.70.0060.00916.75
8.3.60.0130.00718.31
8.3.50.0110.00622.09
8.3.40.0090.01218.54
8.3.30.0070.00719.09
8.3.20.0070.00720.14
8.3.10.0000.00823.27
8.3.00.0040.00419.21
8.2.190.0040.01118.41
8.2.180.0120.00318.41
8.2.170.0090.00922.96
8.2.160.0100.00322.13
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0030.00520.87
8.2.110.0150.00619.24
8.2.100.0090.00317.84
8.2.90.0050.00319.05
8.2.80.0050.00317.97
8.2.70.0030.00617.50
8.2.60.0040.00417.79
8.2.50.0030.00618.07
8.2.40.0030.00717.97
8.2.30.0040.00418.06
8.2.20.0030.00617.75
8.2.10.0040.00417.96
8.2.00.0040.00417.75
8.1.280.0110.01125.92
8.1.270.0000.00818.92
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.14
8.1.230.0080.00618.69
8.1.220.0040.00417.79
8.1.210.0040.00418.77
8.1.200.0100.00017.25
8.1.190.0000.00817.10
8.1.180.0000.00718.10
8.1.170.0040.00418.50
8.1.160.0030.00621.93
8.1.150.0000.00718.82
8.1.140.0040.00417.40
8.1.130.0070.00017.78
8.1.120.0000.00717.32
8.1.110.0000.00817.46
8.1.100.0070.00017.30
8.1.90.0040.00417.47
8.1.80.0030.00517.45
8.1.70.0040.00417.35
8.1.60.0060.00317.58
8.1.50.0030.00517.56
8.1.40.0050.00217.57
8.1.30.0030.00517.55
8.1.20.0040.00417.67
8.1.10.0000.00817.45
8.1.00.0040.00417.30
8.0.300.0040.00421.90
8.0.290.0000.00716.63
8.0.280.0040.00318.32
8.0.270.0000.00816.83
8.0.260.0000.00617.21
8.0.250.0070.00016.83
8.0.240.0040.00416.98
8.0.230.0070.00016.87
8.0.220.0070.00016.84
8.0.210.0060.00316.91
8.0.200.0040.00416.91
8.0.190.0030.00516.99
8.0.180.0020.00516.89
8.0.170.0040.00416.81
8.0.160.0030.00316.95
8.0.150.0040.00416.89
8.0.140.0030.00516.86
8.0.130.0030.00613.25
8.0.120.0030.00516.84
8.0.110.0040.00416.91
8.0.100.0070.00016.95
8.0.90.0040.00316.84
8.0.80.0030.01316.88
8.0.70.0040.00416.77
8.0.60.0040.00416.78
8.0.50.0040.00416.95
8.0.30.0180.00517.16
8.0.20.0060.01317.40
8.0.10.0000.00716.84
8.0.00.0030.01416.56
7.4.330.0000.00415.03
7.4.320.0030.00316.49
7.4.300.0000.00616.36
7.4.290.0000.00716.61
7.4.280.0040.00416.49
7.4.270.0030.00316.48
7.4.260.0040.00416.42
7.4.250.0040.00416.44
7.4.240.0050.00216.63
7.4.230.0030.00516.68
7.4.220.0120.00616.47
7.4.210.0100.01016.64
7.4.200.0070.00016.68
7.4.160.0090.00616.65
7.4.150.0120.00617.40
7.4.140.0130.00617.86
7.4.130.0120.00616.36
7.4.120.0100.00816.41
7.4.110.0080.00816.41
7.4.100.0110.00716.34
7.4.90.0110.00716.46
7.4.80.0080.01619.39
7.4.70.0070.01516.44
7.4.60.0040.01216.68
7.4.50.0020.00216.56
7.4.40.0040.01516.52
7.4.30.0190.00316.64
7.4.00.0090.00615.22
7.3.330.0000.00513.34
7.3.320.0000.00613.14
7.3.310.0000.00716.21
7.3.300.0000.00716.27
7.3.290.0110.00516.33
7.3.280.0090.00916.28
7.3.270.0120.00617.40
7.3.260.0120.00616.62
7.3.250.0080.00816.46
7.3.240.0000.01516.34
7.3.230.0150.00616.47
7.3.210.0080.01116.37
7.3.200.0080.00819.39
7.3.190.0090.00616.52
7.3.180.0130.00316.34
7.3.170.0130.00316.45
7.3.160.0060.01016.47
7.2.330.0110.00716.27
7.2.320.0150.00316.68
7.2.310.0110.00616.39
7.2.300.0090.01216.54
7.2.290.0130.00916.23
7.2.00.0060.01219.32
7.1.100.0260.00018.04
7.1.70.0070.00717.20
7.1.60.0070.01419.46
7.1.50.0060.01616.64
7.1.00.0000.08022.51
7.0.200.0030.00616.78
7.0.140.0070.05022.18
7.0.60.0030.04719.87
7.0.50.0030.08017.88
7.0.40.0170.06020.14
7.0.30.0270.05020.26
7.0.20.0300.04720.33
7.0.10.0130.07720.24
7.0.00.0030.07320.09
5.6.280.0100.06720.82
5.6.210.0000.05320.72
5.6.200.0100.08018.13
5.6.190.0030.04720.52
5.6.180.0370.07320.61
5.6.170.0330.07720.47
5.6.160.0170.05720.51
5.6.150.0100.07018.15
5.6.140.0100.04718.15
5.6.130.0030.04018.28
5.6.120.0100.08720.97
5.6.110.0130.07721.02
5.6.100.0100.08320.96
5.6.90.0170.07720.98
5.6.80.0030.04020.41
5.5.350.3130.04020.39
5.5.340.0130.05718.04
5.5.330.0030.04720.35
5.5.320.0230.04320.42
5.5.310.0300.04020.39
5.5.300.0070.07318.10
5.5.290.0070.03717.93
5.5.280.0070.05720.84
5.5.270.0030.05320.82
5.5.260.0070.07720.87
5.5.250.0070.08320.61
5.5.240.0130.07020.27
5.4.450.0200.06719.20
5.4.440.0300.06319.41
5.4.430.0230.07719.56
5.4.420.0170.05019.49
5.4.410.0130.06319.26
5.4.400.0070.08719.25
5.4.390.0370.06318.57
5.4.380.0400.07318.73
5.4.370.0230.06718.75
5.4.360.0170.07718.70
5.4.350.0400.04018.80
5.4.340.0200.06318.73
5.4.320.0300.06318.61
5.4.310.0330.05718.80
5.4.300.0330.06018.72
5.4.290.0330.07018.53
5.4.280.0200.06018.78
5.4.270.0170.06318.61
5.4.260.0300.05018.55
5.4.250.0230.05318.76
5.4.240.0330.04318.63
5.4.230.0230.05318.57
5.4.220.0300.04718.77
5.4.210.0230.05718.77
5.4.200.0300.04716.59
5.4.190.0230.06318.77
5.4.180.0270.05018.77
5.4.170.0030.07018.48
5.4.160.0270.05018.42
5.4.150.0130.05718.67
5.4.140.0170.06316.25
5.4.130.0230.05016.39
5.4.120.0230.05716.24
5.4.110.0300.05716.45
5.4.100.0230.05716.33
5.4.90.0130.06716.27
5.4.80.0230.05716.18
5.4.70.0230.05716.23
5.4.60.0270.04716.30
5.4.50.0230.04716.16
5.4.40.0200.05716.39
5.4.30.0170.05716.29
5.4.20.0230.05716.14
5.4.10.0300.05016.26

preferences:
46.8 ms | 401 KiB | 5 Q