3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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);
based on oiuO8
Output for 5.6.0 - 5.6.30, 7.0.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.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting '(' in /in/qqEU6:8 Stack trace: #0 {main}
Process exited with code 255.