If you can guarantee that your array won't have any non-numerical keys and that you aren't going to be deleting any keys, then the last element added to your array's key will be
$last_added = count($array)-1;
If you really need to keep track of the latest added key, you may want to come up with a scheme to come up with your own keys that are guaranteed to be unique. this way you'll always have the latest added key since you generated it.
$array = array('test1', 'test2', 'test3', 'test4', 'test5');
// do a bunch of other stuff, probably a loop
$new_key = generate_key();
$array[$new_key] = 'test6';
echo $new_key; // gives me blahblahfoobar123