James58899 says to YSITD
foreach最後會被編譯會傳統的for