Fixed PHP async emulation and output in browser.