I believe that all of these (and even die() or die(0)) are identical. If they are not identical, which is preferred for exiting a script successfu
die()
die(0)
die(); is just a synonym for exit(); and is functionally identical.
die();
exit();
The standard way is to use exit code zero to signify success, and anything else to denote an error condition.