1--TEST-- 2Bug #74361: Compaction in array_rand() violates COW 3--FILE-- 4<?php 5 6$array = [4 => 4]; 7var_dump(array_rand($array)); 8 9?> 10--EXPECT-- 11int(4) 12