3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 'APIKEY'; $secret = 'APISECRET'; $timestamp = time(); $signature = hash_hmac('sha1', "timestamp=".$timestamp, $secret); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://www.domain.com/getticker"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); curl_setopt($ch, CURLOPT_HEADER, FALSE); curl_setopt($ch, CURLOPT_POST, TRUE); curl_setopt($ch, CURLOPT_POSTFIELDS, "timestamp=".time()); curl_setopt($ch, CURLOPT_HTTPHEADER, array("Content-Type: application/x-www-form-urlencoded","key: ".$key,"sig: ".$signature)); $response = curl_exec($ch); curl_close($ch); echo $response;

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.0040.01517.15
7.3.110.0000.01617.15
7.3.100.0000.01417.15
7.3.90.0080.00417.15
7.3.80.0070.01017.15
7.3.70.0090.00917.15
7.3.60.0090.00617.15
7.3.50.0070.01117.15
7.3.40.0100.00717.15
7.3.30.0040.01117.15
7.3.20.0090.00617.15
7.3.10.0030.01417.15
7.3.00.0070.00417.15
7.2.240.0130.00317.15
7.2.230.0030.01517.15
7.2.220.0090.00917.15
7.2.210.0030.01417.15
7.2.200.0090.00617.15
7.2.190.0080.00617.15
7.2.180.0160.00317.15
7.2.170.0040.01417.15
7.2.160.0030.01217.15
7.2.150.0030.00917.15
7.2.140.0100.00317.15
7.2.130.0120.00617.15
7.2.120.0140.00317.15
7.2.110.0140.00317.15
7.2.100.0070.01117.15
7.2.90.0100.00317.15
7.2.80.0070.01017.15
7.2.70.0060.00917.15
7.2.60.0070.00517.04
7.2.50.0110.00317.15
7.2.40.0060.00917.15
7.2.30.0030.01017.15
7.2.20.0070.01017.15
7.2.10.0080.00417.15
7.2.00.0020.01318.30
7.1.330.0030.01417.15
7.1.320.0100.00617.15
7.1.310.0060.01017.15
7.1.300.0080.00417.15
7.1.290.0060.00317.15
7.1.280.0110.00417.15
7.1.270.0060.00617.15
7.1.260.0110.00417.15
7.1.250.0040.00817.15
7.1.200.0040.01115.59
7.1.100.0190.00318.09
7.1.70.0040.00416.78
7.1.60.0100.01319.12
7.1.50.0070.00416.80
7.1.00.0000.07322.54
7.0.200.0030.00616.58
7.0.100.0070.04020.22
7.0.90.0070.03320.05
7.0.80.0070.06019.94
7.0.70.0100.04320.16
7.0.60.0030.05320.09
7.0.50.0130.06320.33
7.0.40.0130.07720.00
7.0.30.0030.06720.15
7.0.20.0130.08020.09
7.0.10.0170.07020.13
7.0.00.0130.07720.12
5.6.250.0070.04320.50
5.6.240.0070.05320.58
5.6.230.0030.08720.69
5.6.220.0000.03720.53
5.6.210.0000.04720.77
5.6.200.0100.08021.03
5.6.190.0070.08321.17
5.6.180.0030.08321.04
5.6.170.0100.08321.09
5.6.160.0070.08721.08
5.6.150.0070.09021.08
5.6.140.0070.08020.95
5.6.130.0000.09021.04
5.6.120.0170.07321.14
5.6.110.0030.08321.00
5.6.100.0170.06721.09
5.6.90.0130.04321.15
5.6.80.0100.07320.56
5.6.70.0130.03720.32
5.6.60.0130.07720.54
5.6.50.0100.07320.34
5.6.40.0170.05720.38
5.6.30.0170.04720.44
5.6.20.0130.04320.30
5.6.10.0100.07320.37
5.6.00.0030.06720.28
5.5.380.0000.04320.38
5.5.370.0000.04320.57
5.5.360.0070.04020.56
5.5.350.0000.04320.43
5.5.340.0130.08020.81
5.5.330.0070.09020.88
5.5.320.0070.08320.65
5.5.310.0070.08320.91
5.5.300.0100.08020.84
5.5.290.0030.09320.88
5.5.280.0070.06720.88
5.5.270.0070.09020.91
5.5.260.0130.08720.64
5.5.250.0170.06720.65
5.5.240.0070.08020.20
5.5.230.0200.06720.03
5.5.220.0100.07020.31
5.5.210.0000.05720.26
5.5.200.0070.08020.07
5.5.190.0070.04720.13
5.5.180.0070.07720.00
5.5.160.0100.06720.09
5.5.150.0130.07020.28
5.5.140.0100.07020.17
5.5.130.0100.07720.28
5.5.120.0070.06020.15
5.5.110.0100.07320.27
5.5.100.0130.07720.08
5.5.90.0130.06720.08
5.5.80.0030.04320.02
5.5.70.0000.05720.16
5.5.60.0100.08020.16
5.5.50.0030.05020.01
5.5.40.0100.06320.16
5.5.30.0030.08020.14
5.5.20.0100.07719.94
5.5.10.0070.06020.04
5.5.00.0070.07720.13

preferences:
37.37 ms | 401 KiB | 5 Q