He felt that the world had come to an end when he failed in the university entrance exam last year. (periodic sentence)
When he failed in the university entrance exam last year, he felt that the world had come to an end.
He felt that the world had come to an end when he failed in the university entrance exam last year. (periodic sentence)
When he failed in the university entrance exam last year, he felt that the world had come to an end.