well the php version is a little faster because there is not so much server resources being used as with the cgi version.
If you are just using running one script then either one will work will work fine. If you are going to run several of them on the same server then go the php version
