PHP file:

#!/usr/bin/php
<?php
echo "Hello word";
?>

from bash command line:

chmod a+x <myfile>
apt-get install php-cli
./<myfile>

Di paolo