Last active
January 1, 2016 07:39
-
-
Save stamm/8112889 to your computer and use it in GitHub Desktop.
Performance test from https://gist.github.com/aktuba/8112737
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
####### PHP 5.4.23 BENCHMARK ####### | |
Start : 12/24/2013 16:49:12 pm | |
Server : @ | |
Platform : Darwin | |
PHP version: 5.4.23 | |
#################################### | |
for : 0.02550 sec | |
while : 0.01702 sec | |
if else : 0.08580 sec | |
switch : 0.11273 sec | |
Ternary : 0.06513 sec | |
str_replace : 0.46830 sec | |
preg_replace : 0.02157 sec | |
preg_match : 0.58029 sec | |
count : 0.13223 sec | |
isset : 0.05796 sec | |
time : 0.28560 sec | |
strlen : 0.12089 sec | |
sprintf : 0.49164 sec | |
strcmp : 0.16067 sec | |
trim : 0.19024 sec | |
explode : 0.01172 sec | |
implode : 0.48850 sec | |
number_format : 0.53053 sec | |
floor : 0.11844 sec | |
strpos : 0.17025 sec | |
substr : 0.19076 sec | |
intval : 0.15712 sec | |
(int) : 0.07597 sec | |
is_array : 0.20691 sec | |
is_numeric : 0.20908 sec | |
is_int : 0.21707 sec | |
is_string : 0.20476 sec | |
ip2long : 0.18488 sec | |
long2ip : 0.73504 sec | |
date : 0.01515 sec | |
strftime : 0.03159 sec | |
strtotime : 0.04171 sec | |
strtolower : 0.34774 sec | |
strtoupper : 0.36732 sec | |
md5 : 0.34381 sec | |
unset : 0.12369 sec | |
list : 0.12544 sec | |
urlencode : 0.24278 sec | |
urldecode : 0.28899 sec | |
addslashes : 0.29775 sec | |
stripslashes : 0.19318 sec | |
#################################### | |
Total : 8.736 sec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
####### PHP 5.5.7 BENCHMARK ######## | |
Start : 12/24/2013 16:49:47 pm | |
Server : @ | |
Platform : Darwin | |
PHP version: 5.5.7 | |
#################################### | |
for : 0.02124 sec | |
while : 0.01693 sec | |
if else : 0.07980 sec | |
switch : 0.11157 sec | |
Ternary : 0.06803 sec | |
str_replace : 0.46999 sec | |
preg_replace : 0.02261 sec | |
preg_match : 0.57619 sec | |
count : 0.12648 sec | |
isset : 0.06019 sec | |
time : 0.28203 sec | |
strlen : 0.10836 sec | |
sprintf : 0.47628 sec | |
strcmp : 0.14465 sec | |
➜ php | |
trim : 0.17189 sec | |
explode : 0.01218 sec | |
implode : 0.49868 sec | |
number_format : 0.51481 sec | |
floor : 0.10876 sec | |
strpos : 0.16820 sec | |
substr : 0.18247 sec | |
intval : 0.15127 sec | |
(int) : 0.07124 sec | |
is_array : 0.18618 sec | |
is_numeric : 0.18876 sec | |
is_int : 0.20095 sec | |
is_string : 0.18690 sec | |
ip2long : 0.18840 sec | |
long2ip : 0.83853 sec | |
date : 0.01467 sec | |
strftime : 0.02540 sec | |
strtotime : 0.04204 sec | |
strtolower : 0.36057 sec | |
strtoupper : 0.38288 sec | |
md5 : 0.35447 sec | |
unset : 0.13146 sec | |
list : 0.12039 sec | |
urlencode : 0.23097 sec | |
urldecode : 0.29580 sec | |
addslashes : 0.30627 sec | |
stripslashes : 0.18420 sec | |
#################################### | |
Total : 8.683 sec |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment