Test PHP exit code