xref: /PHP-7.3/ext/standard/tests/array/bug74361.phpt (revision c8034514)
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