exemple: file test.php
first create file:
touch test.php chmod 755 test.php
vi test.php
#! /usr/bin/php <?php echo phpinfo(); ?>
then run ./test.php