3v4l.org

run code in 300+ PHP versions simultaneously
<?php $verificationCode = '6g8998f53f98d69cbdf07c789a7ec1284b9gaeab573a0dc94e76a4db9ceg21a4'; $request = [ "title" => "57c58ce24b1e15e8358b4568", "body" => "57c58ce24b1e15e8358b4568", "charset" => "UTF-8", "isApp" => "app", "defaultbank" => "ICBC", "merchantId" => "100000000002698", "notifyUrl" => "https://requestb.in/12q245v1", "orderNo" => "57c58ce24b1e15e8358b4568", "paymentType" => "1", "paymethod" => "directPay", "returnUrl" => "http://china.isitdomain.com", "service" => "online_pay", "totalFee" => "1.0" ]; // var_dump($request); $request = array_filter($request); // var_dump($request); ksort($request); var_dump($request); // $signParams = []; // foreach ($request as $key => $value) { // $signParams[] = "{$key}={$value}"; // } // $rawSign = implode('&', $signParams) . $verificationCode; $rawSign = http_build_query($request) . $verificationCode; var_dump($rawSign); $sign = strtoupper(sha1($rawSign)); $url = "https://ebank.ztpo.cn/payment/v1/order/100000000002698-57c58ce24b1e15e8358b4567?"; $request['signType'] = 'SHA'; $request['sign'] = $sign; $readyUrl = $url . http_build_query($request); echo $sign, PHP_EOL; echo $readyUrl, PHP_EOL;

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.4.10.0030.00719.64
8.3.140.0130.00320.72
8.3.130.0000.00918.32
8.3.120.0090.00918.92
8.3.110.0100.00020.94
8.3.100.0100.01024.06
8.3.90.0050.00326.77
8.3.80.0060.00317.97
8.3.70.0150.00418.30
8.3.60.0030.01618.56
8.3.50.0140.00717.42
8.3.40.0090.00918.79
8.3.30.0040.01218.65
8.3.20.0050.00320.33
8.3.10.0040.00423.65
8.3.00.0080.00019.24
8.2.260.0070.00416.79
8.2.250.0090.00016.66
8.2.240.0100.00018.95
8.2.230.0060.00322.58
8.2.220.0030.00637.54
8.2.210.0000.00926.77
8.2.200.0070.00418.29
8.2.190.0040.01516.88
8.2.180.0070.01118.54
8.2.170.0090.01222.96
8.2.160.0040.01120.39
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00319.85
8.2.110.0100.00022.29
8.2.100.0120.00317.91
8.2.90.0080.00017.91
8.2.80.0000.00917.97
8.2.70.0000.00917.59
8.2.60.0060.00317.93
8.2.50.0030.00518.07
8.2.40.0040.00418.12
8.2.30.0070.00018.15
8.2.20.0070.00018.23
8.2.10.0060.00318.22
8.2.00.0070.00018.27
8.1.310.0080.00016.88
8.1.300.0130.00617.91
8.1.290.0090.00030.84
8.1.280.0130.00325.92
8.1.270.0040.00420.04
8.1.260.0080.00026.35
8.1.250.0070.01128.09
8.1.240.0050.00520.63
8.1.230.0040.00720.97
8.1.220.0030.00617.74
8.1.210.0030.00618.87
8.1.200.0050.00517.23
8.1.190.0060.00317.35
8.1.180.0050.00318.10
8.1.170.0000.00918.55
8.1.160.0040.00418.83
8.1.150.0040.00418.83
8.1.140.0040.00419.11
8.1.130.0000.00718.96
8.1.120.0040.00417.51
8.1.110.0040.00417.46
8.1.100.0000.00817.37
8.1.90.0040.00417.49
8.1.80.0050.00317.49
8.1.70.0030.00617.43
8.1.60.0000.00917.63
8.1.50.0030.00617.54
8.1.40.0030.00617.57
8.1.30.0000.00817.67
8.1.20.0040.00417.75
8.1.10.0080.00017.65
8.1.00.0000.00817.39
8.0.300.0000.00720.04
8.0.290.0080.00016.63
8.0.280.0040.00418.41
8.0.270.0030.00317.25
8.0.260.0040.00417.25
8.0.250.0080.00017.02
8.0.240.0000.00816.96
8.0.230.0070.00017.05
8.0.220.0030.00516.81
8.0.210.0070.00016.86
8.0.200.0080.00017.00
8.0.190.0070.00016.88
8.0.180.0080.00016.95
8.0.170.0040.00416.96
8.0.160.0030.00516.82
8.0.150.0080.00016.86
8.0.140.0000.00816.76
8.0.130.0000.00513.42
8.0.120.0040.00416.91
8.0.110.0000.00816.86
8.0.100.0040.00417.04
8.0.90.0000.00716.76
8.0.80.0060.00916.92
8.0.70.0040.00416.89
8.0.60.0040.00416.99
8.0.50.0070.00016.90
8.0.30.0060.01317.04
8.0.20.0120.00817.40
8.0.10.0000.00716.87
8.0.00.0110.00716.65
7.4.330.0030.00315.55
7.4.320.0000.00616.55
7.4.300.0000.00616.40
7.4.290.0090.00016.50
7.4.280.0050.00316.57
7.4.270.0000.00716.64
7.4.260.0030.00616.50
7.4.250.0000.00716.57
7.4.240.0040.00416.52
7.4.230.0070.00016.67
7.4.220.0040.00316.55
7.4.210.0030.01216.44
7.4.200.0070.00016.56
7.4.160.0130.00416.61
7.4.150.0100.01017.40
7.4.140.0100.01017.86
7.4.130.0110.00816.59
7.4.120.0110.01016.47
7.3.330.0000.00613.15
7.3.320.0060.00013.23
7.3.310.0070.00016.44
7.3.300.0000.00716.32
7.3.290.0090.00616.32
7.3.280.0100.00516.31
7.3.270.0060.01317.40
7.3.260.0090.01116.44
7.3.250.0090.00916.43
7.3.240.0110.01016.54
7.2.10.0450.01018.07

preferences:
27.94 ms | 403 KiB | 5 Q