Trouble extracting year from date field for computed field
Function array dereferencing was added in PHP 5.4, you must be using an older version.  

To fix:

$parts = explode("-", $date);
$year = $parts[0];