3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $params = [ ]; function findRecordsByFeeds($feeds, $limit = null, $offset = null, $viewsRegion = null) { $params = [ 'feeds' => $feeds, 'limit' => $limit, 'offset' => $offset, 'viewsRegion' => $viewsRegion, 'excludeArticleId' => $excludeArticleId, 'topHours' => null, 'isValidated' => true ]; if (is_array($this->_fields)) { $params['fields'] = $this->_fields; } $params = array_filter($params); $response = $this->_get('records?' . http_build_query($params)); $out = $this->_parseResponse($response); if (empty($out['result'])) { return null; } return $out['result'];
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected end of file in /in/jq9LQ on line 27
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '[' in /in/jq9LQ on line 3
Process exited with code 255.