Using a loop of that length (for ($i=0;$i<10000;$i++)) on a site allowing people to execute code, and then linking it to HN effectively amounts to a do-it-yourself DDoS. I don't think I wanna be the host of that site right now.
"Abusive script
This script was stopped while abusing our resources"
edit: Too slow: 504 Gateway Time-out