Updating submodules
[hiphop-php.git] / hphp / test / slow / bug-3715777.php
blob1b395afda554d93f7af503d257626f740b8e60a8
1 <?hh
4 function array_extend(inout $dest, varray $src): void {
5 foreach ($src as $element) {
6 $dest[] = $element;
10 function getImpliedChecks(varray $arg): varray {
11 $implied_checks = varray[];
12 foreach ($arg as $key => $val) {
13 array_extend(inout $implied_checks, $val);
16 return $implied_checks;
20 <<__EntryPoint>>
21 function main_bug_3715777() {
22 for ($i = 0; $i < 10; $i++) {
23 var_dump(getImpliedChecks(varray[varray[1,2,3], varray[4,5,6], varray[7,8,9]]));