NOTE: This question has been solved. It is a duplicate of shebang line not working
/usr/bin/env php /var/projects/user-backup.php
I think I've got it (thanks to EDIT1):
Your php file has Windows style line endings (EOLN s); In Windows, EOLN is
\x0D\x0A), while on Unix is
0x0A). Some Unix interpreters don't like
\r, and this is the case here.
To make things work convert your EOLN s to Unix style: