install php-cli

$ sudo apt-get install -y php-cli

to execute

$ php index.php