PageRenderTime 84ms CodeModel.GetById 39ms app.highlight 5ms RepoModel.GetById 36ms app.codeStats 0ms

/hphp/test/quick/array-compact.php

http://github.com/facebook/hiphop-php
PHP | 12 lines | 12 code | 0 blank | 0 comment | 0 complexity | 92e2a0529497c9b969f4b760d0bc9757 MD5 | raw file
 1<?hh
 2function f($a) {
 3  $a["four"] = 4;
 4  return $a;
 5}
 6<<__EntryPoint>> function main(): void {
 7$a = darray[1=>1, 2=>2, 3=>3];
 8unset($a[1]);
 9unset($a[2]);
10unset($a[3]);
11var_dump(f($a));
12}