3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_time_limit(300); echo 'START'; flush(); $key = "hKRDnKagmecgYVrrDwBb"; $token = "5fqicwqzql1HsVE5uXnKubyvyKOaX4mYddL0"; $accountId = "28"; //$url = "https://dataapi.autoplay.co.nz/"; $url = "https://dataapi.aptest.co.nz/"; $fred = "?id=".$accountId; $fred .= "&yard=2867"; $fred .= "&pageSize=2"; $fred .= "&pageNumber=1"; $ch = curl_init($url.'search.ashx'.$fred); curl_setopt($ch, CURLOPT_HEADER, 0); // set to 0 to eliminate header info from response curl_setopt($ch, CURLOPT_VERBOSE, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // Returns response data instead of TRUE(1) curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); // uncomment this line if you get no gateway response. ### curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt($ch, CURLOPT_MAXREDIRS, 5); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true); curl_setopt($ch, CURLOPT_STDERR, $fp); $headers = array( 'Key: '.$key, 'Token: '.$token ); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLINFO_HEADER_OUT, true); //curl_setopt($ch, CURLOPT_URL, $url."search.asx" ); //curl_setopt($ch, CURLOPT_POST, true ); //curl_setopt($ch, CURLOPT_POSTFIELDS, $Something is wrong); // use HTTP POST to send form data echo '<br>GOING TO DO REQUEST'; flush(); $result = curl_exec($ch); $headers_info = curl_getinfo($ch); echo "HEADERS:<pre>".print_r($headers_info, true)."</pre>"; flush(); echo "RESULT:<pre>".print_r($result, true)."</pre>"; flush(); ?>

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.0070.01518.68
8.3.50.0140.00716.29
8.3.40.0110.00418.83
8.3.30.0180.00018.77
8.3.20.0070.01120.35
8.3.10.0040.00421.73
8.3.00.0040.01520.95
8.2.180.0140.00318.29
8.2.170.0150.00422.96
8.2.160.0100.00722.26
8.2.150.0090.00024.18
8.2.140.0030.00524.66
8.2.130.0070.00020.43
8.2.120.0080.00026.35
8.2.110.0070.00422.18
8.2.100.0060.00617.97
8.2.90.0040.00419.30
8.2.80.0030.00619.51
8.2.70.0040.00417.75
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0040.00420.50
8.2.30.0000.00919.26
8.2.20.0070.00018.04
8.2.10.0040.00418.21
8.2.00.0000.00718.20
8.1.280.0070.01025.92
8.1.270.0060.00323.97
8.1.260.0040.01126.35
8.1.250.0050.00328.09
8.1.240.0090.00023.88
8.1.230.0110.00023.89
8.1.220.0030.00517.79
8.1.210.0080.00018.77
8.1.200.0040.00417.35
8.1.190.0030.00517.34
8.1.180.0040.00418.10
8.1.170.0060.00318.50
8.1.160.0000.00718.73
8.1.150.0020.00518.87
8.1.140.0040.00419.63
8.1.130.0070.00018.82
8.1.120.0000.00717.50
8.1.110.0030.00617.43
8.1.100.0000.00717.34
8.1.90.0050.00217.46
8.1.80.0000.00817.34
8.1.70.0030.00317.45
8.1.60.0000.00817.54
8.1.50.0000.00817.45
8.1.40.0000.00817.52
8.1.30.0040.00417.58
8.1.20.0040.00417.70
8.1.10.0080.00017.51
8.1.00.0070.00317.49
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0000.00718.48
8.0.270.0030.00317.22
8.0.260.0000.00716.88
8.0.250.0030.00317.10
8.0.240.0030.00616.92
8.0.230.0000.00917.06
8.0.220.0030.00316.98
8.0.210.0040.00416.98
8.0.200.0070.00017.05
8.0.190.0040.00417.05
8.0.180.0020.00516.99
8.0.170.0050.00317.00
8.0.160.0040.00416.94
8.0.150.0000.01016.89
8.0.140.0040.00416.88
8.0.130.0000.00513.41
8.0.120.0000.00816.94
8.0.110.0060.00316.99
8.0.100.0080.00017.08
8.0.90.0000.00816.89
8.0.80.0190.00316.93
8.0.70.0050.00316.96
8.0.60.0000.00716.78
8.0.50.0040.00416.85
8.0.30.0100.01016.98
8.0.20.0080.01117.40
8.0.10.0040.00417.16
8.0.00.0090.00916.68
7.4.330.0000.00715.55
7.4.320.0030.00316.53
7.4.300.0060.00016.59
7.4.290.0030.00316.52
7.4.280.0000.00716.52
7.4.270.0030.00316.47
7.4.260.0030.00313.32
7.4.250.0060.00316.43
7.4.240.0030.00316.55
7.4.230.0070.00016.29
7.4.220.0100.00616.59
7.4.210.0060.01216.64
7.4.200.0030.00316.38
7.4.160.0050.01116.54
7.4.150.0140.00417.40
7.4.140.0130.00817.86
7.4.130.0120.00616.80
7.4.120.0120.00616.51
7.4.110.0090.01516.43
7.4.100.0170.00016.42
7.4.90.0110.00816.40
7.4.80.0040.01319.39
7.4.70.0120.00416.51
7.4.60.0070.01016.50
7.4.50.0070.00716.23
7.4.40.0170.00016.43
7.4.30.0110.00816.51
7.4.00.0040.01114.74
7.3.330.0030.00313.27
7.3.320.0030.00313.25
7.3.310.0030.00316.40
7.3.300.0000.00716.23
7.3.290.0070.00716.38
7.3.280.0070.00716.36
7.3.270.0100.00717.40
7.3.260.0130.00816.36
7.3.250.0100.01016.49
7.3.240.0060.01116.53
7.3.230.0120.00616.55
7.3.210.0100.00716.31
7.3.200.0120.00416.65
7.3.190.0150.00416.53
7.3.180.0100.00716.29
7.3.170.0110.00716.38
7.3.160.0050.01316.36
7.3.120.0070.01015.05
7.3.110.0090.00614.95
7.3.100.0060.00614.67
7.3.90.0090.00014.85
7.3.80.0040.01214.75
7.3.70.0090.00614.92
7.3.60.0030.00914.89
7.3.50.0030.01314.82
7.3.40.0060.00314.89
7.3.30.0040.00814.70
7.3.20.0070.01016.73
7.3.10.0040.01316.75
7.3.00.0080.00316.44
7.2.330.0140.00316.72
7.2.320.0090.00916.83
7.2.310.0040.01216.62
7.2.300.0070.01016.66
7.2.290.0070.01116.31
7.2.250.0000.01814.89
7.2.240.0090.00615.17
7.2.230.0100.00014.85
7.2.220.0030.00615.16
7.2.210.0000.01114.82
7.2.200.0120.00315.00
7.2.190.0000.01514.93
7.2.180.0100.00615.00
7.2.170.0060.00914.86
7.2.160.0040.00914.92
7.2.150.0030.00916.78
7.2.140.0040.01516.79
7.2.130.0070.00716.60
7.2.120.0040.01116.80
7.2.110.0070.00916.97
7.2.100.0050.00616.79
7.2.90.0020.00916.75
7.2.80.0080.00616.81
7.2.70.0050.00916.80
7.2.60.0100.00616.99
7.2.50.0070.00716.84
7.2.40.0090.00416.95
7.2.30.0070.00616.79
7.2.20.0070.01016.70
7.2.10.0050.01216.79
7.2.00.0030.01117.69
7.1.330.0030.00915.64
7.1.320.0030.00615.66
7.1.310.0060.00315.41
7.1.300.0040.01115.48
7.1.290.0070.01015.58
7.1.280.0060.01015.77
7.1.270.0000.01515.80
7.1.260.0090.00615.81
7.1.250.0020.01215.60
7.1.200.0050.00315.50
7.1.70.0000.00817.24
7.1.60.0830.01733.14
7.1.50.0630.01032.75
7.1.40.0870.00732.48
7.1.30.0530.01032.79
7.1.20.0500.01732.80
7.1.10.0400.01014.64
7.1.00.0970.00014.70
7.0.200.0400.01014.74
7.0.190.0070.00715.02
7.0.180.0530.01714.48
7.0.170.0400.01314.24
7.0.160.0430.00714.36
7.0.150.0100.01014.41
7.0.140.0330.01314.61
7.0.130.0030.01014.78
7.0.120.0030.01014.71
7.0.110.0070.00714.41
7.0.100.0100.00714.33
7.0.90.0500.01014.43
7.0.80.0400.02014.59
7.0.70.0000.01314.67
7.0.60.0470.01014.47
7.0.50.0000.01314.49
7.0.40.0600.00714.58
7.0.30.0570.01714.42
7.0.20.0630.01014.36
7.0.10.0170.01014.59
7.0.00.0470.01014.49

preferences:
59.78 ms | 400 KiB | 5 Q