Parse error: syntax error, unexpected '$value' (T_VARIABLE)

The only cause for the issue we’ve seen is the PHP version.

Sometimes the server is configured with two separate PHP versions: one for the web server and one for the CLI. You may want to create a phpinfo page to check.