3v4l.org

run code in 300+ PHP versions simultaneously
<?php function BitBay_Trading_Api($method, $params = array()) { $key = "123"; $secret = "321"; $params["method"] = "info"; $params["moment"] = time(); $post = http_build_query($params, "", "&"); $sign = hash_hmac("sha512", $post, $secret); $headers = array( "API-Key: " . $key, "API-Hash: " . $sign, ); $curl = curl_init(); curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); curl_setopt($curl, CURLOPT_URL, "https://bitbay.net/API/Trading/tradingApi.php"); curl_setopt($curl, CURLOPT_POST, true); curl_setopt($curl, CURLOPT_POSTFIELDS, $post); curl_setopt($curl, CURLOPT_HTTPHEADER, $headers); //$ret = curl_exec($curl); // return $ret; return $params["method"]; }

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)
7.3.120.0070.01014.62
7.3.110.0070.00914.91
7.3.100.0090.00914.61
7.3.90.0120.00314.59
7.3.80.0040.01214.73
7.3.70.0040.00714.80
7.3.60.0120.00314.68
7.3.50.0100.00314.69
7.3.40.0030.00714.77
7.3.30.0070.00414.44
7.3.20.0120.00016.22
7.3.10.0000.01216.40
7.3.00.0060.01316.50
7.2.240.0100.00714.87
7.2.230.0030.01314.56
7.2.220.0030.00614.80
7.2.210.0040.01514.50
7.2.200.0110.00414.97
7.2.190.0040.01514.67
7.2.180.0080.00414.76
7.2.170.0000.01314.42
7.2.160.0040.01114.74
7.2.150.0100.00716.29
7.2.140.0090.00616.54
7.2.130.0060.01016.33
7.2.120.0070.01016.80
7.2.110.0090.00616.88
7.2.100.0040.01116.66
7.2.90.0000.01416.56
7.2.80.0030.01316.60
7.2.70.0030.01016.54
7.2.60.0050.00816.77
7.2.50.0030.01416.89
7.2.40.0100.00616.68
7.2.30.0060.01116.80
7.2.20.0080.01116.58
7.2.10.0000.01416.88
7.2.00.0000.01516.52
7.1.330.0160.00015.46
7.1.320.0060.00315.57
7.1.310.0090.00615.68
7.1.300.0060.00915.60
7.1.290.0060.00615.29
7.1.280.0060.00615.36
7.1.270.0100.00015.27
7.1.260.0030.00715.50
7.1.250.0060.00615.46
7.1.200.0030.00715.19
7.1.110.0040.01417.63
7.1.100.0050.01318.07
7.1.90.0150.00017.83
7.1.80.0060.01318.05
7.1.70.0000.01716.88
7.1.60.0220.01434.77
7.1.50.0250.00934.60
7.1.40.0240.00634.33
7.1.30.0170.01434.27
7.1.20.0210.01434.52
7.1.10.0090.00716.32
7.1.00.0000.01516.43
7.0.250.0070.01117.61
7.0.240.0080.00917.65
7.0.230.0070.01317.47
7.0.220.0060.00917.42
7.0.210.0040.01216.64
7.0.200.0070.01016.76
7.0.190.0030.01316.53
7.0.180.0080.01415.86
7.0.170.0090.01015.97
7.0.160.0030.01316.10
7.0.150.0030.01116.12
7.0.140.0040.01116.28
7.0.130.0060.00916.42
7.0.120.0000.01516.41
7.0.110.0130.00416.24
7.0.100.0060.01216.30
7.0.90.0040.01116.18
7.0.80.0030.01616.44
7.0.70.0060.01316.33
7.0.60.0090.00616.13
7.0.50.0100.00916.16
7.0.40.0040.01116.46
7.0.30.0090.00916.39
7.0.20.0090.00916.36
7.0.10.0000.01816.32
7.0.00.0060.01216.08

preferences:
35.28 ms | 401 KiB | 5 Q