PageRenderTime 39ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/slow/max_int/array_slice.php

http://github.com/facebook/hiphop-php
PHP | 7 lines | 6 code | 1 blank | 0 comment | 0 complexity | 32b6709193359ecc92a5c8cdec59e790 MD5 | raw file
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
  1. <?hh
  2. <<__EntryPoint>>
  3. function main_array_slice() {
  4. $a = varray[1, 2, 3];
  5. var_dump(array_slice($a, 0, PHP_INT_MAX));
  6. }