3v4l.org

run code in 300+ PHP versions simultaneously
<?php $qiwi_login = '+79099127277'; $qiwi_password = '1234'; // Авторизация, шаг 1 $qiwi_auth = qiwi_post('https://qiwi.ru/auth/login.action', 'source=MENU&login='.urlencode($qiwi_login).'&password='.urlencode($qiwi_password)); $qiwi_auth = json_decode($qiwi_auth['content'], true); $qiwi_token = $qiwi_auth['data']['token']; echo '<pre>'; echo print_r($qiwi_auth); echo '</pre>'; // Авторизация, шаг 2 $qiwi_auth = qiwi_post('https://qiwi.ru/auth/login.action', 'source=MENU&login='.urlencode($qiwi_login).'&password='.urlencode($qiwi_password)).'&loginToken='.urlencode($qiwi_token); function qiwi_post($url = null, $params = null, $cookie = null) { $headers = array( "Accept:application/json, text/javascript, */*; q=0.01", "Accept-Language:ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4", "Content-Type:application/x-www-form-urlencoded; charset=UTF-8", "Connection:keep-alive", "X-Requested-With:XMLHttpRequest" ); $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 1); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_REFERER, 'https://qiwi.ru/'); if($params) { curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $params); } curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_USERAGENT, 'Opera/9.80 (Windows NT 6.1; WOW64; U; pt) Presto/2.10.229 Version/11.62'); if($cookie) { curl_setopt($ch, CURLOPT_COOKIE, $cookie); } curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); $response = curl_exec($ch); $content = substr($response, curl_getinfo($ch, CURLINFO_HEADER_SIZE)); $header = substr($response, 0, curl_getinfo($ch, CURLINFO_HEADER_SIZE)); return array('content' => $content, 'header' => $header); curl_close($ch); } ?>

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.40.0180.00418.87
8.3.30.0060.00918.84
8.3.20.0030.00520.39
8.3.10.0080.00023.66
8.3.00.0000.00819.98
8.2.170.0140.00722.96
8.2.160.0070.01020.47
8.2.150.0030.00524.18
8.2.140.0040.00424.66
8.2.130.0050.00321.05
8.2.120.0080.00026.35
8.2.110.0030.00620.35
8.2.100.0080.00420.29
8.2.90.0040.00419.27
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0030.00619.38
8.2.30.0000.00720.68
8.2.20.0070.00017.98
8.2.10.0070.00018.21
8.2.00.0040.00418.25
8.1.270.0040.00418.93
8.1.260.0070.00028.09
8.1.250.0080.00028.09
8.1.240.0060.00323.75
8.1.230.0070.00320.97
8.1.220.0040.00417.75
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0050.00317.76
8.1.180.0030.00618.10
8.1.170.0080.00018.53
8.1.160.0070.00020.87
8.1.150.0050.00218.95
8.1.140.0060.00319.63
8.1.130.0030.00317.73
8.1.120.0000.00817.50
8.1.110.0040.00417.40
8.1.100.0030.00517.34
8.1.90.0000.00717.51
8.1.80.0040.00417.50
8.1.70.0030.00317.38
8.1.60.0000.00817.52
8.1.50.0000.00917.61
8.1.40.0060.00317.55
8.1.30.0000.00817.63
8.1.20.0000.00917.59
8.1.10.0030.00517.54
8.1.00.0030.00517.63
8.0.300.0000.00818.77
8.0.290.0040.00417.00
8.0.280.0000.00818.37
8.0.270.0070.00017.27
8.0.260.0000.00717.24
8.0.250.0030.00316.96
8.0.240.0000.00717.03
8.0.230.0040.00416.92
8.0.220.0000.00716.99
8.0.210.0030.00316.90
8.0.200.0000.00616.97
8.0.190.0040.00416.98
8.0.180.0070.00016.92
8.0.170.0000.00817.10
8.0.160.0000.00717.08
8.0.150.0080.00016.88
8.0.140.0070.00016.94
8.0.130.0000.00613.49
8.0.120.0040.00417.02
8.0.110.0000.00716.98
8.0.100.0000.00816.86
8.0.90.0070.00017.07
8.0.80.0110.00416.96
8.0.70.0000.00716.90
8.0.60.0070.00017.01
8.0.50.0050.00316.82
8.0.30.0090.00817.34
8.0.20.0100.00817.40
8.0.10.0040.00417.08
8.0.00.0110.00816.91
7.4.330.0020.00216.80
7.4.320.0000.00816.52
7.4.300.0000.00616.51
7.4.290.0030.00316.63
7.4.280.0050.00316.55
7.4.270.0040.00416.66
7.4.260.0040.00416.57
7.4.250.0000.00716.66
7.4.240.0020.00616.49
7.4.230.0000.00716.73
7.4.220.0030.01616.72
7.4.210.0070.00716.68
7.4.200.0080.00016.59
7.4.160.0110.00516.66
7.4.150.0130.00517.40
7.4.140.0070.01217.86
7.4.130.0110.00716.61
7.4.120.0140.00516.54
7.4.110.0140.00716.56
7.4.100.0100.01316.50
7.4.90.0130.00616.66
7.4.80.0090.00919.39
7.4.70.0110.01216.54
7.4.60.0130.00316.65
7.4.50.0050.00816.59
7.4.40.0100.00716.79
7.4.30.0060.01216.60
7.4.00.0070.01015.14
7.3.330.0060.00013.29
7.3.320.0050.00013.31
7.3.310.0030.00316.38
7.3.300.0000.00616.39
7.3.290.0070.01016.29
7.3.280.0120.00616.33
7.3.270.0030.01417.40
7.3.260.0060.01316.48
7.3.240.0110.00916.42
7.3.230.0110.00616.41
7.3.210.0030.01416.43
7.3.200.0200.00316.28
7.3.190.0060.01216.48
7.3.180.0080.00816.63
7.3.170.0130.00316.30
7.3.160.0050.01116.46
7.3.120.0000.01714.90
7.3.110.0090.00614.77
7.3.100.0130.00315.00
7.3.90.0040.00714.96
7.3.80.0070.00714.79
7.3.70.0120.00314.79
7.3.60.0120.00014.95
7.3.50.0060.00914.96
7.3.40.0060.01214.87
7.3.30.0000.01014.89
7.3.20.0000.01416.78
7.3.10.0020.01316.66
7.3.00.0060.00516.44
7.2.330.0090.00916.63
7.2.320.0100.00716.81
7.2.310.0070.01016.72
7.2.300.0110.00616.63
7.2.290.0060.01116.55
7.2.250.0040.01115.25
7.2.240.0110.00714.72
7.2.230.0040.01215.09
7.2.220.0080.00815.05
7.2.210.0040.00714.92
7.2.200.0030.00915.05
7.2.190.0040.00714.97
7.2.180.0110.00015.11
7.2.170.0090.00314.95
7.2.130.0030.01016.71
7.2.120.0030.01316.89
7.2.110.0000.01316.88
7.2.100.0080.00516.82
7.2.90.0070.00716.92
7.2.80.0030.01316.84
7.2.70.0090.00616.58
7.2.60.0060.00916.87
7.2.50.0080.00416.96
7.2.40.0100.00316.69
7.2.30.0040.00916.83
7.2.20.0100.00316.77
7.2.10.0070.00716.80
7.2.00.0170.00918.04
7.1.330.0000.01315.69
7.1.320.0060.00815.83
7.1.310.0060.00615.49
7.1.300.0070.00415.61
7.1.290.0090.00615.68
7.1.280.0100.00615.77
7.1.270.0100.00315.94
7.1.260.0030.01315.81
7.1.250.0030.00915.73
7.1.200.0100.00315.75
7.1.100.0060.00617.91
7.1.70.0060.01016.86
7.1.60.0090.01319.50
7.1.50.0000.01417.09
7.1.00.0030.07722.29
7.0.200.0040.00416.88
7.0.100.0100.07319.96
7.0.90.0100.08019.91
7.0.80.0130.07319.91
7.0.70.0130.07319.98
7.0.60.0070.08319.97
7.0.50.0070.03720.40
7.0.40.0030.08319.98
7.0.30.0170.07020.05
7.0.20.0070.08019.95
7.0.10.0070.05020.02
7.0.00.0130.07320.08
5.6.250.0070.07720.75
5.6.240.0070.08020.47
5.6.230.0170.07020.45
5.6.220.0000.07720.49
5.6.210.0100.05320.59
5.6.200.0070.05020.92
5.6.190.0070.08020.98
5.6.180.0030.08720.93
5.6.170.0030.08721.10
5.6.160.0100.07721.08
5.6.150.0070.08721.10
5.6.140.0130.07320.98
5.6.130.0130.08321.05
5.6.120.0000.04721.14
5.6.110.0100.08020.92
5.6.100.0130.08020.91
5.6.90.0070.08321.05
5.6.80.0170.06720.36
5.6.70.0100.07020.31
5.6.60.0030.07020.35
5.6.50.0030.08320.36
5.6.40.0100.08020.46
5.6.30.0100.07320.34
5.6.20.0070.08020.42
5.6.10.0070.08320.27
5.6.00.0100.07720.33
5.5.380.0070.08320.47
5.5.370.0130.04320.38
5.5.360.0070.08020.53
5.5.350.0070.08020.34
5.5.340.0070.08320.79
5.5.330.0030.08320.77
5.5.320.0070.08720.79
5.5.310.0070.05320.73
5.5.300.0170.06720.89
5.5.290.0170.07020.79
5.5.280.0070.05020.82
5.5.270.0070.08320.85
5.5.260.0070.06320.89
5.5.250.0030.07720.61
5.5.240.0070.07720.24
5.5.230.0030.05319.98
5.5.220.0170.07020.12
5.5.210.0100.07320.12
5.5.200.0130.06720.24
5.5.190.0100.07720.05
5.5.180.0070.07320.25
5.5.160.0030.04720.13
5.5.150.0030.06020.11
5.5.140.0030.08320.24
5.5.130.0000.06720.07
5.5.120.0070.08320.26
5.5.110.0130.07019.95
5.5.100.0070.04720.05
5.5.90.0030.08020.12
5.5.80.0030.08319.91
5.5.70.0130.07320.11
5.5.60.0100.07020.03
5.5.50.0130.03719.97
5.5.40.0130.07720.05
5.5.30.0170.06719.93
5.5.20.0070.07719.98
5.5.10.0070.07319.97
5.5.00.0030.08019.97

preferences:
52.19 ms | 400 KiB | 5 Q