Php script: how to run

I have a php script name.php and I want to run it
What command should I use?

Run it with /usr/bin/php?

$ cat name.php
#!/usr/bin/env php
<?php
    my php code goes here
?>


$ php ./name.php
...

Well, i do not know if it sounds stupid but when i type

php ./name.php input output

i get the php code of name.php printed on screen (without any output of course)

Missing the <?php and ?>?

I am not sure what you mean
You mean to type in the command line

<?php ./name.php ?>

No, I mean that your PHP script should have it.

name.php:

#!/usr/bin/env php
<?php
  contents of name.php goes here
?>