It works on Android too — and it’s not a good idea to do it on either.
So far it looks like a “harmless” prank. If you visit the site crashsafari.com (please don’t) it will crash the Safari browser on Mac and iOS (phone) devices so hard that you’ll likely require a reboot. It appears to do the same to Chrome on Android devices and PCs.
From the Endgadget article:
“There doesn’t appear to be any malware lurking behind the code, and you should be fine once you restart your browser or device. However, there are concerns that someone could use the crash to compromise your security (some attacks rely on crashes to open vulnerabilities)… or at least, use a URL shortener to hide the link and pull a prank.”
Read the full story here: http://www.engadget.com/2016/01/25/web-link-crashes-safari/