Why is array_key_exists 1000x slower than isset on referenced arrays?
问题 I have found that array_key_exists is over 1000x slower than isset at check if a key is set in an array reference. Does anyone that has an understanding of how PHP is implemented explain why this is true? EDIT: I've added another case that seems to point to it being overhead required in calling functions with a reference. Benchmark Example function isset_( $key, array $array ) { return isset( $array[$key] ); } $my_array = array(); $start = microtime( TRUE ); for( $i = 1; $i < 10000; $i++ ) {