3v4l.org

run code in 300+ PHP versions simultaneously
<?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);
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
Parse error: syntax error, unexpected ''owner_id'' (T_CONSTANT_ENCAPSED_STRING), expecting '(' in /in/qqEU6 on line 8
Process exited with code 255.

preferences:
158.31 ms | 1395 KiB | 36 Q