@ 2017-07-13T10:03:15Z <?php
$access_token = $token['access_token'];
$owner_id = $userInfo['uid'];
$message = '🔥 Я во ВКонтакте уже '.$days.' дней!'.PHP_EOL.'🚩Узнай и ты свой возраст в ВК:'.PHP_EOL.'🆗 ';
function postMessage($access_token,$owner_id,$message){
$request = "https://api.vkontakte.ru/method/wall.post";
$params = array( 'owner_id' => $owner_id, 'message' => $message, 'access_token' => $access_token); $result = callMethod($request, $params);
return $result;
}
function callMethod($request, $params){$c=curl_init();
curl_setopt($c, CURLOPT_URL, $request);
curl_setopt($c, CURLOPT_RETURNTRANSFER, true); curl_setopt($c, CURLOPT_FOLLOWLOCATION, true); curl_setopt($c, CURLOPT_POST, true); curl_setopt($c, CURLOPT_POSTFIELDS, $params); curl_setopt($c, CURLOPT_CONNECTTIMEOUT, 10); curl_setopt($c, CURLOPT_TIMEOUT, 30); $result=curl_exec($c); curl_close($c); return $result; }
postMessage( $access_token,$owner_id,$message);
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
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).
Version System time (s) User time (s) Memory (MiB) 7.1.7 0.006 0.010 17.05 7.1.6 0.015 0.019 34.73 7.1.5 0.018 0.018 34.40 7.1.4 0.022 0.013 34.50 7.1.3 0.024 0.009 34.42 7.1.2 0.021 0.007 34.36 7.1.1 0.003 0.015 16.48 7.1.0 0.000 0.017 16.30 7.0.20 0.006 0.013 16.57 7.0.19 0.003 0.013 16.21 7.0.18 0.000 0.015 16.12 7.0.17 0.005 0.008 16.15 7.0.16 0.000 0.014 16.00 7.0.15 0.004 0.013 16.12 7.0.14 0.007 0.007 16.19 7.0.13 0.004 0.008 16.48 7.0.12 0.002 0.015 16.20 7.0.11 0.004 0.011 16.34 7.0.10 0.009 0.006 16.14 7.0.9 0.003 0.013 16.15 7.0.8 0.003 0.014 16.07 7.0.7 0.004 0.012 15.83 7.0.6 0.003 0.010 15.96 7.0.5 0.006 0.012 16.16 7.0.4 0.009 0.006 16.54 7.0.3 0.009 0.006 16.45 7.0.2 0.007 0.007 16.17 7.0.1 0.000 0.015 16.47 7.0.0 0.008 0.010 16.30
preferences:dark mode live preview
143.72 ms | 1394 KiB | 7 Q