php7:
http://blog.csdn.net/21aspnet/article/details/47708763
php7配置:
http://www.tuicool.com/articles/NjmQNj6
php5:
http://blog.csdn.net/unix21/article/details/8544922
测试比较:
测试结果:
安装的是php7
[html5@dev197 ~]$ php -v
PHP 7.0.0 (cli) (built: Dec 17 2015 14:11:09) ( NTS )
[html5@dev197 ~]$ time php test_resume_time.php
real 0m0.036s
user 0m0.017s
sys 0m0.019s
安装的是php5.4.45
[root@dev195 php_test]# /opt/php/bin/php -v
PHP 5.4.45 (cli) (built: Nov 7 2015 17:23:32)
[root@dev195 php_test]# time /opt/php/bin/php test_resume_time.php
real 0m0.817s
user 0m0.538s
sys 0m0.207s
安装的是php7
[html5@dev197 ~]$ php -v
PHP 7.0.0 (cli) (built: Dec 17 2015 14:11:09) ( NTS )
[html5@dev197 ~]$ time php test_resume_time.php
real 0m0.036s
user 0m0.017s
sys 0m0.019s
安装的是php5.4.45
[root@dev195 php_test]# /opt/php/bin/php -v
PHP 5.4.45 (cli) (built: Nov 7 2015 17:23:32)
[root@dev195 php_test]# time /opt/php/bin/php test_resume_time.php
real 0m0.817s
user 0m0.538s
sys 0m0.207s