Skip to content

Commit

Permalink
Merge pull request #1 from cnastasi/master
Browse files Browse the repository at this point in the history
Added array_key_exists example
  • Loading branch information
nicmart committed Sep 3, 2015
2 parents 4a3cbde + bda11ec commit b4248ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/isset.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,12 @@ function func() {}
->register('is_null', 'is_null', function() use ($args) {
$a = is_null($args[0]); $b = is_null($args[1]);
})
->register('array_key_exists', 'array_key_exists', function() use ($args) {
$a = array_key_exists(0, $args); $b = array_key_exists(1, $args);
})
;

$bench->benchmark(10000);
$bench->benchmark(50000);

$groups[] = $bench->getResults();

Expand Down

0 comments on commit b4248ec

Please sign in to comment.