<?
$times = 500000;
$url = 'http://196.168.132.21/test';
$myRoot = 'http://196.168.132.21/';
// >>320
for($i=0;$i<$times;++$i) {
}
// >>316 explodeを曲解(それは思いつかなかった、と思ったやり方はこれでした。)
for($i=0;$i<$times;++$i) {
}
// >>316 parse_url
// このままでは結果はtestではなく、/testとなってしまう点に注意
for($i=0;$i<$times;++$i) {
$last = $result['path'];
}
// >>318 strlen + substr
for($i=0;$i<$times;++$i) {
}
// >>319 置換
for($i=0;$i<$times;++$i) {
}
PD8KJHRpbWVzID0gNTAwMDAwOwoKJHVybCA9ICdodHRwOi8vMTk2LjE2OC4xMzIuMjEvdGVzdCc7CiRteVJvb3QgPSAnaHR0cDovLzE5Ni4xNjguMTMyLjIxLyc7CgovLyA+PjMyMAokc3RhcnQgPSBtaWNyb3RpbWUodHJ1ZSk7CmZvcigkaT0wOyRpPCR0aW1lczsrKyRpKSB7CiAgICAkbGFzdCA9IGVuZChleHBsb2RlKCcvJywgJHVybCwgNCkpOwp9CiRlbmQgPSBtaWNyb3RpbWUodHJ1ZSk7CnByaW50X3IoJGVuZC0kc3RhcnQgLiAiXG4iKTsKCi8vID4+MzE2IGV4cGxvZGXjgpLmm7Lop6Mo44Gd44KM44Gv5oCd44GE44Gk44GL44Gq44GL44Gj44Gf44CB44Go5oCd44Gj44Gf44KE44KK5pa544Gv44GT44KM44Gn44GX44Gf44CCKQokc3RhcnQgPSBtaWNyb3RpbWUodHJ1ZSk7CmZvcigkaT0wOyRpPCR0aW1lczsrKyRpKSB7CiAgICAkbGFzdCA9IGVuZChleHBsb2RlKCRteVJvb3QsICR1cmwsIDIpKTsKfQokZW5kID0gbWljcm90aW1lKHRydWUpOwpwcmludF9yKCRlbmQtJHN0YXJ0IC4gIlxuIik7CgovLyA+PjMxNiBwYXJzZV91cmwKLy8g44GT44Gu44G+44G+44Gn44Gv57WQ5p6c44GvdGVzdOOBp+OBr+OBquOBj+OAgS90ZXN044Go44Gq44Gj44Gm44GX44G+44GG54K544Gr5rOo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