In Windows, the time command in Linux can be used to obtain the command execution time. In Windows, there is no similar command, so we can write a batch process and name it time. bat. [Plain] @ echo off set/a StartMS = % time :~ 3, 1% * 60000 + % time :~ 4,1% * 6000 + % time :~ 6, 1% * 1000 + % time :~ 7,1% * 100 + % time :~ 9,1% * 10 + % time :~ 1% % 2% 3% 4% 5% 6 set/a EndMS = % time :~ 3, 1% * 60000 + % time :~ 4,1% * 6000 + % time :~ 6, 1% * 1000 + % time :~ 7,1% * 100 + % time :~ 9,1% * 10 + % time :~ 5.3% set/a realtime = % EndMS %-% StartMS % echo % realtime % ms this is an example of execution. Test the running speed of different PHP versions 5.4, 5.5, and: [plain] F: \ BAK> time. bat F: \ BAK \ php-5.3.27 \ php.exe primes. benchmark. php PHP version 5.3.27 Found 148933 prime numbers. 867 ms F: \ BAK> time. bat F: \ BAK \ php-5.4.19 \ php.exe primes. benchmark. php PHP version 5.4.19 Found 148933 prime numbers. 759 ms F: \ BAK> time. bat F: \ BAK \ php-5.5.4 \ php.exe primes. benchmark. php PHP version 5.5.4 Found 148933 prime numbers. 733 ms