3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /* ########################################################################## # PHP Benchmark Performance Script # # © 2010 Code24 BV # # # # Author : Alessandro Torrisi # # Company : Code24 BV, The Netherlands # # Date : July 31, 2010 # # version : 1.0 # # License : Creative Commons CC-BY license # # Website : http://www.php-benchmark-script.com # # # ########################################################################## */ function test_Math($count = 140000) { $time_start = microtime(true); $mathFunctions = array("abs", "acos", "asin", "atan", "bindec", "floor", "exp", "sin", "tan", "pi", "is_finite", "is_nan", "sqrt"); foreach ($mathFunctions as $key => $function) { if (!function_exists($function)) unset($mathFunctions[$key]); } for ($i=0; $i < $count; $i++) { foreach ($mathFunctions as $function) { $r = call_user_func_array($function, array($i)); } } return number_format(microtime(true) - $time_start, 3); } function test_StringManipulation($count = 130000) { $time_start = microtime(true); $stringFunctions = array("addslashes", "chunk_split", "strip_tags", "md5", "sha1", "strtoupper", "strtolower", "strrev", "strlen", "soundex", "ord"); foreach ($stringFunctions as $key => $function) { if (!function_exists($function)) unset($stringFunctions[$key]); } $string = "the quick brown fox jumps over the lazy dog"; foreach ($stringFunctions as $function) { $time_start_sub = microtime(true); for ($i=0; $i < $count; $i++) { $r = call_user_func_array($function, array($string)); } echo str_pad($function, 15) . ": " . number_format(microtime(true) - $time_start_sub, 3) . "\n"; } return number_format(microtime(true) - $time_start, 3); } function test_Loops($count = 19000000) { $time_start = microtime(true); for($i = 0; $i < $count; ++$i); $i = 0; while($i < $count) ++$i; return number_format(microtime(true) - $time_start, 3); } function test_IfElse($count = 9000000) { $time_start = microtime(true); for ($i=0; $i < $count; $i++) { if ($i == -1) { } elseif ($i == -2) { } else if ($i == -3) { } } return number_format(microtime(true) - $time_start, 3); } $total = 0; $functions = get_defined_functions(); $line = str_pad("-",38,"-"); echo "<pre>$line\n|".str_pad("PHP BENCHMARK SCRIPT",36," ",STR_PAD_BOTH)."|\n$line\nStart : ".date("Y-m-d H:i:s")."\nServer : \nPHP version : ".PHP_VERSION."\nPlatform : ".PHP_OS. "\n$line\n"; foreach ($functions['user'] as $user) { if (preg_match('/^test_/', $user)) { $total += $result = $user(); echo str_pad($user, 25) . " : " . $result ." sec.\n"; } } echo str_pad("-", 38, "-") . "\n" . str_pad("Total time:", 25) . " : " . $total ." sec.</pre>"; ?>

Abusive script

This script was stopped while abusing our resources

Output for 7.2.11
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.2.11 Platform : Linux -------------------------------------- test_math : 0.376 sec. addslashes : 0.034 chunk_split : 0.023 strip_tags : 0.041 md5 : 0.045 sha1 : 0.081 strtoupper : 0.042 strtolower : 0.035 strrev : 0.040 strlen : 0.028 soundex : 0.040 ord : 0.028 test_stringmanipulation : 0.438 sec. test_loops : 0.350 sec. test_ifelse : 0.260 sec. -------------------------------------- Total time: : 1.424 sec.</pre>
Output for 7.2.10
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.2.10 Platform : Linux -------------------------------------- test_math : 0.300 sec. addslashes : 0.030 chunk_split : 0.020 strip_tags : 0.030 md5 : 0.050 sha1 : 0.052 strtoupper : 0.021 strtolower : 0.018 strrev : 0.018 strlen : 0.013 soundex : 0.018 ord : 0.012 test_stringmanipulation : 0.284 sec. test_loops : 0.302 sec. test_ifelse : 0.190 sec. -------------------------------------- Total time: : 1.076 sec.</pre>
Output for 7.2.9
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.2.9 Platform : Linux -------------------------------------- test_math : 0.330 sec. addslashes : 0.022 chunk_split : 0.022 strip_tags : 0.039 md5 : 0.046 sha1 : 0.054 strtoupper : 0.024 strtolower : 0.020 strrev : 0.021 strlen : 0.018 soundex : 0.031 ord : 0.025 test_stringmanipulation : 0.322 sec. test_loops : 0.399 sec. test_ifelse : 0.259 sec. -------------------------------------- Total time: : 1.31 sec.</pre>
Output for 7.2.8
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.2.8 Platform : Linux -------------------------------------- test_math : 0.352 sec. addslashes : 0.021 chunk_split : 0.018 strip_tags : 0.033 md5 : 0.050 sha1 : 0.055 strtoupper : 0.024 strtolower : 0.023 strrev : 0.021 strlen : 0.015 soundex : 0.021 ord : 0.018 test_stringmanipulation : 0.300 sec. test_loops : 0.269 sec. test_ifelse : 0.207 sec. -------------------------------------- Total time: : 1.128 sec.</pre>
Output for 7.2.7
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.2.7 Platform : Linux -------------------------------------- test_math : 0.307 sec. addslashes : 0.023 chunk_split : 0.017 strip_tags : 0.031 md5 : 0.049 sha1 : 0.075 strtoupper : 0.033 strtolower : 0.017 strrev : 0.021 strlen : 0.013 soundex : 0.026 ord : 0.015 test_stringmanipulation : 0.323 sec. test_loops : 0.329 sec. test_ifelse : 0.279 sec. -------------------------------------- Total time: : 1.238 sec.</pre>
Output for 7.2.6
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.2.6 Platform : Linux -------------------------------------- test_math : 0.284 sec. addslashes : 0.022 chunk_split : 0.017 strip_tags : 0.032 md5 : 0.044 sha1 : 0.052 strtoupper : 0.023 strtolower : 0.027 strrev : 0.033 strlen : 0.022 soundex : 0.034 ord : 0.023 test_stringmanipulation : 0.333 sec. test_loops : 0.267 sec. test_ifelse : 0.195 sec. -------------------------------------- Total time: : 1.079 sec.</pre>
Output for 7.2.5
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.2.5 Platform : Linux -------------------------------------- test_math : 0.448 sec. addslashes : 0.044 chunk_split : 0.019 strip_tags : 0.033 md5 : 0.045 sha1 : 0.058 strtoupper : 0.025 strtolower : 0.023 strrev : 0.025 strlen : 0.017 soundex : 0.020 ord : 0.014 test_stringmanipulation : 0.323 sec. test_loops : 0.250 sec. test_ifelse : 0.193 sec. -------------------------------------- Total time: : 1.214 sec.</pre>
Output for 7.2.4
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.2.4 Platform : Linux -------------------------------------- test_math : 0.324 sec. addslashes : 0.020 chunk_split : 0.018 strip_tags : 0.035 md5 : 0.044 sha1 : 0.054 strtoupper : 0.024 strtolower : 0.034 strrev : 0.028 strlen : 0.015 soundex : 0.021 ord : 0.015 test_stringmanipulation : 0.309 sec. test_loops : 0.277 sec. test_ifelse : 0.216 sec. -------------------------------------- Total time: : 1.126 sec.</pre>
Output for 7.2.3
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.2.3 Platform : Linux -------------------------------------- test_math : 0.387 sec. addslashes : 0.026 chunk_split : 0.024 strip_tags : 0.053 md5 : 0.049 sha1 : 0.096 strtoupper : 0.027 strtolower : 0.024 strrev : 0.028 strlen : 0.016 soundex : 0.038 ord : 0.017 test_stringmanipulation : 0.400 sec. test_loops : 0.262 sec. test_ifelse : 0.214 sec. -------------------------------------- Total time: : 1.263 sec.</pre>
Output for 7.2.2
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.2.2 Platform : Linux -------------------------------------- test_math : 0.283 sec. addslashes : 0.024 chunk_split : 0.017 strip_tags : 0.045 md5 : 0.047 sha1 : 0.051 strtoupper : 0.022 strtolower : 0.021 strrev : 0.021 strlen : 0.013 soundex : 0.019 ord : 0.013 test_stringmanipulation : 0.294 sec. test_loops : 0.238 sec. test_ifelse : 0.215 sec. -------------------------------------- Total time: : 1.03 sec.</pre>
Output for 7.2.1
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.2.1 Platform : Linux -------------------------------------- test_math : 0.366 sec. addslashes : 0.022 chunk_split : 0.020 strip_tags : 0.037 md5 : 0.043 sha1 : 0.060 strtoupper : 0.021 strtolower : 0.019 strrev : 0.021 strlen : 0.013 soundex : 0.030 ord : 0.015 test_stringmanipulation : 0.302 sec. test_loops : 0.259 sec. test_ifelse : 0.207 sec. -------------------------------------- Total time: : 1.134 sec.</pre>
Output for 7.2.0
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.2.0 Platform : Linux -------------------------------------- test_math : 0.340 sec. addslashes : 0.021 chunk_split : 0.019 strip_tags : 0.033 md5 : 0.045 sha1 : 0.065 strtoupper : 0.021 strtolower : 0.019 strrev : 0.019 strlen : 0.014 soundex : 0.019 ord : 0.013 test_stringmanipulation : 0.291 sec. test_loops : 0.273 sec. test_ifelse : 0.275 sec. -------------------------------------- Total time: : 1.179 sec.</pre>
Output for 7.1.23
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.1.23 Platform : Linux -------------------------------------- test_math : 0.340 sec. addslashes : 0.037 chunk_split : 0.036 strip_tags : 0.055 md5 : 0.063 sha1 : 0.082 strtoupper : 0.037 strtolower : 0.030 strrev : 0.039 strlen : 0.023 soundex : 0.040 ord : 0.024 test_stringmanipulation : 0.466 sec. test_loops : 0.262 sec. test_ifelse : 0.257 sec. -------------------------------------- Total time: : 1.325 sec.</pre>
Output for 7.1.22
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.1.22 Platform : Linux -------------------------------------- test_math : 0.342 sec. addslashes : 0.024 chunk_split : 0.024 strip_tags : 0.038 md5 : 0.056 sha1 : 0.075 strtoupper : 0.026 strtolower : 0.022 strrev : 0.025 strlen : 0.019 soundex : 0.031 ord : 0.023 test_stringmanipulation : 0.364 sec. test_loops : 0.353 sec. test_ifelse : 0.287 sec. -------------------------------------- Total time: : 1.346 sec.</pre>
Output for 7.1.21
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.1.21 Platform : Linux -------------------------------------- test_math : 0.359 sec. addslashes : 0.029 chunk_split : 0.024 strip_tags : 0.039 md5 : 0.047 sha1 : 0.078 strtoupper : 0.037 strtolower : 0.033 strrev : 0.038 strlen : 0.020 soundex : 0.034 ord : 0.024 test_stringmanipulation : 0.404 sec. test_loops : 0.287 sec. test_ifelse : 0.188 sec. -------------------------------------- Total time: : 1.238 sec.</pre>
Output for 7.1.20
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.1.20 Platform : Linux -------------------------------------- test_math : 0.367 sec. addslashes : 0.022 chunk_split : 0.021 strip_tags : 0.035 md5 : 0.044 sha1 : 0.054 strtoupper : 0.021 strtolower : 0.019 strrev : 0.023 strlen : 0.013 soundex : 0.023 ord : 0.014 test_stringmanipulation : 0.289 sec. test_loops : 0.261 sec. test_ifelse : 0.203 sec. -------------------------------------- Total time: : 1.12 sec.</pre>
Output for 7.1.19
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.1.19 Platform : Linux -------------------------------------- test_math : 0.312 sec. addslashes : 0.032 chunk_split : 0.025 strip_tags : 0.037 md5 : 0.049 sha1 : 0.086 strtoupper : 0.024 strtolower : 0.021 strrev : 0.030 strlen : 0.020 soundex : 0.024 ord : 0.014 test_stringmanipulation : 0.363 sec. test_loops : 0.247 sec. test_ifelse : 0.182 sec. -------------------------------------- Total time: : 1.104 sec.</pre>
Output for 7.1.18
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.1.18 Platform : Linux -------------------------------------- test_math : 0.387 sec. addslashes : 0.027 chunk_split : 0.026 strip_tags : 0.041 md5 : 0.054 sha1 : 0.067 strtoupper : 0.028 strtolower : 0.026 strrev : 0.031 strlen : 0.019 soundex : 0.026 ord : 0.018 test_stringmanipulation : 0.365 sec. test_loops : 0.263 sec. test_ifelse : 0.239 sec. -------------------------------------- Total time: : 1.254 sec.</pre>
Output for 7.1.17
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.1.17 Platform : Linux -------------------------------------- test_math : 0.389 sec. addslashes : 0.024 chunk_split : 0.025 strip_tags : 0.036 md5 : 0.044 sha1 : 0.073 strtoupper : 0.043 strtolower : 0.032 strrev : 0.040 strlen : 0.024 soundex : 0.031 ord : 0.014 test_stringmanipulation : 0.386 sec. test_loops : 0.408 sec. test_ifelse : 0.235 sec. -------------------------------------- Total time: : 1.418 sec.</pre>
Output for 7.1.16
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.1.16 Platform : Linux -------------------------------------- test_math : 0.310 sec. addslashes : 0.023 chunk_split : 0.021 strip_tags : 0.037 md5 : 0.051 sha1 : 0.057 strtoupper : 0.021 strtolower : 0.019 strrev : 0.023 strlen : 0.013 soundex : 0.025 ord : 0.013 test_stringmanipulation : 0.304 sec. test_loops : 0.244 sec. test_ifelse : 0.198 sec. -------------------------------------- Total time: : 1.056 sec.</pre>
Output for 7.1.15
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.1.15 Platform : Linux -------------------------------------- test_math : 0.328 sec. addslashes : 0.022 chunk_split : 0.022 strip_tags : 0.050 md5 : 0.054 sha1 : 0.069 strtoupper : 0.022 strtolower : 0.020 strrev : 0.031 strlen : 0.014 soundex : 0.026 ord : 0.015 test_stringmanipulation : 0.345 sec. test_loops : 0.295 sec. test_ifelse : 0.215 sec. -------------------------------------- Total time: : 1.183 sec.</pre>
Output for 7.1.14
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.1.14 Platform : Linux -------------------------------------- test_math : 0.289 sec. addslashes : 0.020 chunk_split : 0.021 strip_tags : 0.064 md5 : 0.068 sha1 : 0.096 strtoupper : 0.022 strtolower : 0.017 strrev : 0.024 strlen : 0.017 soundex : 0.022 ord : 0.014 test_stringmanipulation : 0.387 sec. test_loops : 0.331 sec. test_ifelse : 0.271 sec. -------------------------------------- Total time: : 1.278 sec.</pre>
Output for 7.1.13
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.1.13 Platform : Linux -------------------------------------- test_math : 0.336 sec. addslashes : 0.024 chunk_split : 0.037 strip_tags : 0.064 md5 : 0.068 sha1 : 0.104 strtoupper : 0.043 strtolower : 0.034 strrev : 0.044 strlen : 0.027 soundex : 0.047 ord : 0.027 test_stringmanipulation : 0.520 sec. test_loops : 0.281 sec. test_ifelse : 0.193 sec. -------------------------------------- Total time: : 1.33 sec.</pre>
Output for 7.1.12
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.1.12 Platform : Linux -------------------------------------- test_math : 0.342 sec. addslashes : 0.022 chunk_split : 0.024 strip_tags : 0.037 md5 : 0.053 sha1 : 0.067 strtoupper : 0.022 strtolower : 0.019 strrev : 0.022 strlen : 0.014 soundex : 0.026 ord : 0.014 test_stringmanipulation : 0.320 sec. test_loops : 0.263 sec. test_ifelse : 0.284 sec. -------------------------------------- Total time: : 1.209 sec.</pre>
Output for 7.1.11
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.1.11 Platform : Linux -------------------------------------- test_math : 0.351 sec. addslashes : 0.028 chunk_split : 0.045 strip_tags : 0.038 md5 : 0.057 sha1 : 0.100 strtoupper : 0.043 strtolower : 0.035 strrev : 0.047 strlen : 0.029 soundex : 0.023 ord : 0.014 test_stringmanipulation : 0.461 sec. test_loops : 0.314 sec. test_ifelse : 0.232 sec. -------------------------------------- Total time: : 1.358 sec.</pre>
Output for 7.1.10
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.1.10 Platform : Linux -------------------------------------- test_math : 0.341 sec. addslashes : 0.040 chunk_split : 0.041 strip_tags : 0.039 md5 : 0.045 sha1 : 0.054 strtoupper : 0.020 strtolower : 0.034 strrev : 0.041 strlen : 0.026 soundex : 0.043 ord : 0.026 test_stringmanipulation : 0.410 sec. test_loops : 0.365 sec. test_ifelse : 0.213 sec. -------------------------------------- Total time: : 1.329 sec.</pre>
Output for 7.1.9
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 12:47:15 Server : PHP version : 7.1.9 Platform : Linux -------------------------------------- test_math : 0.316 sec. addslashes : 0.028 chunk_split : 0.025 strip_tags : 0.040 md5 : 0.065 sha1 : 0.092 strtoupper : 0.038 strtolower : 0.036 strrev : 0.022 strlen : 0.014 soundex : 0.023 ord : 0.019 test_stringmanipulation : 0.402 sec. test_loops : 0.261 sec. test_ifelse : 0.197 sec. -------------------------------------- Total time: : 1.176 sec.</pre>
Output for 7.1.8
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 12:47:15 Server : PHP version : 7.1.8 Platform : Linux -------------------------------------- test_math : 0.310 sec. addslashes : 0.024 chunk_split : 0.022 strip_tags : 0.056 md5 : 0.055 sha1 : 0.062 strtoupper : 0.024 strtolower : 0.019 strrev : 0.022 strlen : 0.014 soundex : 0.027 ord : 0.016 test_stringmanipulation : 0.341 sec. test_loops : 0.350 sec. test_ifelse : 0.210 sec. -------------------------------------- Total time: : 1.211 sec.</pre>
Output for 7.1.7
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 12:47:15 Server : PHP version : 7.1.7 Platform : Linux -------------------------------------- test_math : 0.342 sec. addslashes : 0.027 chunk_split : 0.026 strip_tags : 0.035 md5 : 0.051 sha1 : 0.092 strtoupper : 0.024 strtolower : 0.023 strrev : 0.030 strlen : 0.017 soundex : 0.025 ord : 0.017 test_stringmanipulation : 0.366 sec. test_loops : 0.277 sec. test_ifelse : 0.201 sec. -------------------------------------- Total time: : 1.186 sec.</pre>
Output for 7.1.6
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 12:47:15 Server : PHP version : 7.1.6 Platform : Linux -------------------------------------- test_math : 0.493 sec. addslashes : 0.042 chunk_split : 0.043 strip_tags : 0.068 md5 : 0.072 sha1 : 0.110 strtoupper : 0.043 strtolower : 0.038 strrev : 0.044 strlen : 0.031 soundex : 0.036 ord : 0.020 test_stringmanipulation : 0.549 sec. test_loops : 0.310 sec. test_ifelse : 0.282 sec. -------------------------------------- Total time: : 1.634 sec.</pre>
Output for 7.1.5
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 12:47:15 Server : PHP version : 7.1.5 Platform : Linux -------------------------------------- test_math : 0.445 sec. addslashes : 0.046 chunk_split : 0.039 strip_tags : 0.063 md5 : 0.067 sha1 : 0.067 strtoupper : 0.022 strtolower : 0.021 strrev : 0.025 strlen : 0.016 soundex : 0.025 ord : 0.014 test_stringmanipulation : 0.408 sec. test_loops : 0.510 sec. test_ifelse : 0.210 sec. -------------------------------------- Total time: : 1.573 sec.</pre>
Output for 7.1.4
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 12:47:15 Server : PHP version : 7.1.4 Platform : Linux -------------------------------------- test_math : 0.390 sec. addslashes : 0.036 chunk_split : 0.036 strip_tags : 0.060 md5 : 0.068 sha1 : 0.105 strtoupper : 0.046 strtolower : 0.037 strrev : 0.047 strlen : 0.029 soundex : 0.047 ord : 0.029 test_stringmanipulation : 0.542 sec. test_loops : 0.447 sec. test_ifelse : 0.196 sec. -------------------------------------- Total time: : 1.575 sec.</pre>
Output for 7.1.3
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 12:47:15 Server : PHP version : 7.1.3 Platform : Linux -------------------------------------- test_math : 0.350 sec. addslashes : 0.028 chunk_split : 0.024 strip_tags : 0.038 md5 : 0.049 sha1 : 0.078 strtoupper : 0.044 strtolower : 0.038 strrev : 0.043 strlen : 0.029 soundex : 0.030 ord : 0.014 test_stringmanipulation : 0.415 sec. test_loops : 0.316 sec. test_ifelse : 0.280 sec. -------------------------------------- Total time: : 1.361 sec.</pre>
Output for 7.1.2
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 12:47:15 Server : PHP version : 7.1.2 Platform : Linux -------------------------------------- test_math : 0.376 sec. addslashes : 0.027 chunk_split : 0.021 strip_tags : 0.035 md5 : 0.046 sha1 : 0.059 strtoupper : 0.025 strtolower : 0.021 strrev : 0.022 strlen : 0.016 soundex : 0.028 ord : 0.015 test_stringmanipulation : 0.316 sec. test_loops : 0.265 sec. test_ifelse : 0.195 sec. -------------------------------------- Total time: : 1.152 sec.</pre>
Output for 7.1.1
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 12:47:15 Server : PHP version : 7.1.1 Platform : Linux -------------------------------------- test_math : 0.357 sec. addslashes : 0.021 chunk_split : 0.025 strip_tags : 0.039 md5 : 0.054 sha1 : 0.053 strtoupper : 0.022 strtolower : 0.019 strrev : 0.021 strlen : 0.013 soundex : 0.023 ord : 0.014 test_stringmanipulation : 0.303 sec. test_loops : 0.256 sec. test_ifelse : 0.199 sec. -------------------------------------- Total time: : 1.115 sec.</pre>
Output for 7.1.0
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 12:47:15 Server : PHP version : 7.1.0 Platform : Linux -------------------------------------- test_math : 0.339 sec. addslashes : 0.021 chunk_split : 0.022 strip_tags : 0.034 md5 : 0.052 sha1 : 0.055 strtoupper : 0.021 strtolower : 0.020 strrev : 0.036 strlen : 0.027 soundex : 0.030 ord : 0.018 test_stringmanipulation : 0.335 sec. test_loops : 0.248 sec. test_ifelse : 0.222 sec. -------------------------------------- Total time: : 1.144 sec.</pre>
Output for 7.0.31
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.0.31 Platform : Linux -------------------------------------- test_math : 0.328 sec. addslashes : 0.026 chunk_split : 0.021 strip_tags : 0.038 md5 : 0.051 sha1 : 0.065 strtoupper : 0.024 strtolower : 0.027 strrev : 0.027 strlen : 0.014 soundex : 0.025 ord : 0.014 test_stringmanipulation : 0.331 sec. test_loops : 0.259 sec. test_ifelse : 0.223 sec. -------------------------------------- Total time: : 1.141 sec.</pre>
Output for 7.0.30
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.0.30 Platform : Linux -------------------------------------- test_math : 0.376 sec. addslashes : 0.033 chunk_split : 0.021 strip_tags : 0.038 md5 : 0.053 sha1 : 0.065 strtoupper : 0.021 strtolower : 0.023 strrev : 0.023 strlen : 0.013 soundex : 0.022 ord : 0.013 test_stringmanipulation : 0.326 sec. test_loops : 0.332 sec. test_ifelse : 0.183 sec. -------------------------------------- Total time: : 1.217 sec.</pre>
Output for 7.0.29
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.0.29 Platform : Linux -------------------------------------- test_math : 0.448 sec. addslashes : 0.045 chunk_split : 0.043 strip_tags : 0.056 md5 : 0.060 sha1 : 0.083 strtoupper : 0.040 strtolower : 0.039 strrev : 0.042 strlen : 0.026 soundex : 0.038 ord : 0.019 test_stringmanipulation : 0.494 sec. test_loops : 0.351 sec. test_ifelse : 0.214 sec. -------------------------------------- Total time: : 1.507 sec.</pre>
Output for 7.0.28
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.0.28 Platform : Linux -------------------------------------- test_math : 0.348 sec. addslashes : 0.022 chunk_split : 0.025 strip_tags : 0.038 md5 : 0.050 sha1 : 0.055 strtoupper : 0.021 strtolower : 0.022 strrev : 0.023 strlen : 0.013 soundex : 0.026 ord : 0.025 test_stringmanipulation : 0.323 sec. test_loops : 0.256 sec. test_ifelse : 0.189 sec. -------------------------------------- Total time: : 1.116 sec.</pre>
Output for 7.0.27
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.0.27 Platform : Linux -------------------------------------- test_math : 0.305 sec. addslashes : 0.022 chunk_split : 0.027 strip_tags : 0.039 md5 : 0.052 sha1 : 0.060 strtoupper : 0.022 strtolower : 0.024 strrev : 0.027 strlen : 0.015 soundex : 0.023 ord : 0.013 test_stringmanipulation : 0.326 sec. test_loops : 0.263 sec. test_ifelse : 0.173 sec. -------------------------------------- Total time: : 1.067 sec.</pre>
Output for 7.0.26
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.0.26 Platform : Linux -------------------------------------- test_math : 0.340 sec. addslashes : 0.028 chunk_split : 0.024 strip_tags : 0.049 md5 : 0.101 sha1 : 0.111 strtoupper : 0.040 strtolower : 0.038 strrev : 0.024 strlen : 0.015 soundex : 0.041 ord : 0.028 test_stringmanipulation : 0.499 sec. test_loops : 0.413 sec. test_ifelse : 0.268 sec. -------------------------------------- Total time: : 1.52 sec.</pre>
Output for 7.0.25
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.0.25 Platform : Linux -------------------------------------- test_math : 0.315 sec. addslashes : 0.034 chunk_split : 0.034 strip_tags : 0.040 md5 : 0.055 sha1 : 0.081 strtoupper : 0.031 strtolower : 0.021 strrev : 0.028 strlen : 0.017 soundex : 0.027 ord : 0.019 test_stringmanipulation : 0.386 sec. test_loops : 0.329 sec. test_ifelse : 0.241 sec. -------------------------------------- Total time: : 1.271 sec.</pre>
Output for 7.0.24
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.0.24 Platform : Linux -------------------------------------- test_math : 0.379 sec. addslashes : 0.042 chunk_split : 0.051 strip_tags : 0.045 md5 : 0.050 sha1 : 0.059 strtoupper : 0.031 strtolower : 0.021 strrev : 0.024 strlen : 0.013 soundex : 0.022 ord : 0.027 test_stringmanipulation : 0.387 sec. test_loops : 0.276 sec. test_ifelse : 0.178 sec. -------------------------------------- Total time: : 1.22 sec.</pre>
Output for hhvm-3.22.0
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 7.1.99-hhvm Platform : Linux -------------------------------------- test_math : 0.725 sec. addslashes : 0.056 chunk_split : 0.046 strip_tags : 0.090 md5 : 0.118 sha1 : 0.118 strtoupper : 0.041 strtolower : 0.056 strrev : 0.046 strlen : 0.049 soundex : 0.070 ord : 0.062 test_stringmanipulation : 0.754 sec.
Process exited with code 137.
Output for 5.6.38
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 5.6.38 Platform : Linux -------------------------------------- test_math : 1.364 sec. addslashes : 0.105 chunk_split : 0.079 strip_tags : 0.113 md5 : 0.102 sha1 : 0.135 strtoupper : 0.070 strtolower : 0.085 strrev : 0.074 strlen : 0.062 soundex : 0.071 ord : 0.061 test_stringmanipulation : 0.958 sec.
Process exited with code 137.
Output for 5.6.37
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 5.6.37 Platform : Linux -------------------------------------- test_math : 1.022 sec. addslashes : 0.106 chunk_split : 0.075 strip_tags : 0.108 md5 : 0.109 sha1 : 0.107 strtoupper : 0.073 strtolower : 0.081 strrev : 0.077 strlen : 0.072 soundex : 0.086 ord : 0.080 test_stringmanipulation : 0.975 sec.
Process exited with code 137.
Output for 5.6.36
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 5.6.36 Platform : Linux -------------------------------------- test_math : 1.287 sec. addslashes : 0.091 chunk_split : 0.070 strip_tags : 0.096 md5 : 0.092 sha1 : 0.108 strtoupper : 0.076 strtolower : 0.076 strrev : 0.089 strlen : 0.084 soundex : 0.071 ord : 0.062 test_stringmanipulation : 0.915 sec.
Process exited with code 137.
Output for 5.6.35
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 5.6.35 Platform : Linux -------------------------------------- test_math : 1.080 sec. addslashes : 0.111 chunk_split : 0.072 strip_tags : 0.104 md5 : 0.118 sha1 : 0.142 strtoupper : 0.101 strtolower : 0.112 strrev : 0.120 strlen : 0.104 soundex : 0.110 ord : 0.111 test_stringmanipulation : 1.204 sec.
Process exited with code 137.
Output for 5.6.34
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 5.6.34 Platform : Linux -------------------------------------- test_math : 1.148 sec. addslashes : 0.095 chunk_split : 0.079 strip_tags : 0.083 md5 : 0.099 sha1 : 0.104 strtoupper : 0.072 strtolower : 0.087 strrev : 0.106 strlen : 0.065 soundex : 0.069 ord : 0.061 test_stringmanipulation : 0.922 sec.
Process exited with code 137.
Output for 5.6.33
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 5.6.33 Platform : Linux -------------------------------------- test_math : 1.250 sec. addslashes : 0.081 chunk_split : 0.064 strip_tags : 0.086 md5 : 0.099 sha1 : 0.116 strtoupper : 0.073 strtolower : 0.071 strrev : 0.065 strlen : 0.062 soundex : 0.072 ord : 0.068 test_stringmanipulation : 0.858 sec.
Process exited with code 137.
Output for 5.6.32
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 13:50:13 Server : PHP version : 5.6.32 Platform : Linux -------------------------------------- test_math : 1.371 sec. addslashes : 0.104 chunk_split : 0.076 strip_tags : 0.110 md5 : 0.105 sha1 : 0.145 strtoupper : 0.078 strtolower : 0.089 strrev : 0.106 strlen : 0.137 soundex : 0.118
Process exited with code 137.
Output for 5.6.19
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 12:53:06 Server : PHP version : 5.6.19 Platform : Linux -------------------------------------- test_math : 1.001 sec. addslashes : 0.084 chunk_split : 0.064 strip_tags : 0.080 md5 : 0.112 sha1 : 0.106 strtoupper : 0.073 strtolower : 0.082 strrev : 0.067 strlen : 0.068 soundex : 0.144 ord : 0.118 test_stringmanipulation : 1.001 sec.
Process exited with code 137.
Output for 5.6.13
<pre>-------------------------------------- | PHP BENCHMARK SCRIPT | -------------------------------------- Start : 2018-11-07 12:53:33 Server : PHP version : 5.6.13 Platform : Linux -------------------------------------- test_math : 1.074 sec. addslashes : 0.107 chunk_split : 0.084 strip_tags : 0.134 md5 : 0.120 sha1 : 0.113 strtoupper : 0.071 strtolower : 0.071 strrev : 0.081 strlen : 0.063 soundex : 0.112 ord : 0.118 test_stringmanipulation : 1.076 sec.
Process exited with code 137.