<?php $keyword = array_fill(1, 232, 'system'); $start = microtime(true); for ($i = 0; $i < 50000; $i++) { in_array('user', $keyword, true); } $end = microtime(true); echo 'In Array: ' . ($end - $start); echo "\r\n"; $start = microtime(true); for ($i = 0; $i < 50000; $i++) { isset($keyword['user']); } $end = microtime(true); echo 'Isset: ' . ($end - $start);
You have javascript disabled. You will not be able to edit any code.