Created
September 12, 2017 08:39
-
-
Save bendavies/68ee6b263c8c61fb4637e99a250aa1b5 to your computer and use it in GitHub Desktop.
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 | |
namespace Foo; | |
$a = []; | |
$start = microtime(true); | |
for ($i = 0; $i <= 1000000000; $i++) { | |
is_array($a); | |
} | |
echo microtime(true) - $start . PHP_EOL; | |
$start = microtime(true); | |
for ($i = 0; $i <= 1000000000; $i++) { | |
\is_array($a); | |
} | |
echo microtime(true) - $start . PHP_EOL; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment