What is the error when you run the migration in yii2?

Start the migration to yii2 via the console.
Error:
PHP Parse error: syntax error, unexpected '[', expecting ')' in /public_html/device/vendor/yiisoft/yii2/Yii.php on line 25

There was a suspicion that the version of php < 5.4.
Look phpinfo() shows PHP Version 5.6.18.

from the console run php-v
PHP 5.3.29 (cli) (built: Aug 21 2014 13:46:08)

The first question is who to believe? I understand still version 5.6?
Then the second question is why such error occurs during migration?
-------------------------
Update
used:
php yii migrate/mark m160005_174529_users
and had:
/opt/php56/bin/php yii migrate/mark m160005_174529_users

because the version of php in the console by default was 5.3
July 9th 19 at 13:36
3 answers
July 9th 19 at 13:38
Solution
Ask support of your hosting how to run an older version, for example I have is as follows:
/opt/php5.6/bin/php ...
thanks, by default, the console was used 5.3 . /opt/php56/bin/php solved the problem - Emery46 commented on July 9th 19 at 13:41
July 9th 19 at 13:40
Apparently the error is due to the fact that the language does not understand a short Declaration of the arrays. And this is just to version 5.4 was.
Yii 2.0 requires PHP 5.4+ - Emery46 commented on July 9th 19 at 13:43
25 line of the original file Yii.php contains only: spl_autoload_register(['Yii', 'autoload'], true, true);
So I assumed that the parsing error could only be due to a short Declaration of the array. - enola.Kuhlm commented on July 9th 19 at 13:46
July 9th 19 at 13:42
well, php5-cli and php5-fpm may well be different versions.

Find more questions by tags Yii