PageRenderTime 47ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/slow/collection_classes/frozen_vector/isset.php

http://github.com/facebook/hiphop-php
PHP | 16 lines | 11 code | 4 blank | 1 comment | 0 complexity | bd298f00336139abc4de8001cd3f54fe 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. // Test isset() with ImmVector.
  3. function main() {
  4. $fv = ImmVector {1, 2, 3};
  5. var_dump(isset($fv[0]));
  6. var_dump(isset($fv[2]));
  7. var_dump(isset($fv[3]));
  8. }
  9. <<__EntryPoint>>
  10. function main_isset() {
  11. main();
  12. }