How to echo PHP after comment form submit?

Native comment form is not posting to the page itself, but away to a special wp-comment-post.php endpoint.

That endpoint processes the form submission, then redirects back to the page (which rebuilds with submitted comment if necessary). If you want to echo data at the page at the end of this process you would need to somehow keep track of this.

On top of my head you could hook into comment_post_redirect filter and add a GET query with data or something like that.