array_reverse() takes input array and returns a new array with the order of the elements reversed, preserving the keys if preserve_keys is TRUE.
This makes both $result and $result_keyed be array(array ("green", "red"), 4.0, "php"). But $result_keyed[0] is still "php".
Note: The second parameter was added in PHP 4.0.3.