This file contains 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 Version 5.4.30 | |
-------------------------------------------------- | |
Testing 0 char string over 100,000 iterations: | |
md5 113.2709980011 ms | |
sha1 117.16985702515 ms | |
crc32 78.847885131836 ms | |
-------------------------------------------------- | |
Testing 1 char string over 100,000 iterations: |
This file contains 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 Version 5.4.30 | |
------------------------------------------------------- | |
Testing 10 item array over 100,000 iterations: | |
isset 18.280982971191 | |
array_key_exists 96.060037612915 | |
^E_NOTICE 71.103811264038 | |
------------------------------------------------------- | |
Testing 100 item array over 100,000 iterations: |
This file contains 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 | |
$iterations = 100000; | |
class zero { | |
public static function one() { | |
static $empties = []; | |
$empty = &$empties[static::class]; |
This file contains 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 | |
$iterations = 100000; | |
$value = [ | |
'one' => 1, | |
'two' => 2, | |
'three' => 3, | |
]; |
OlderNewer