PageRenderTime 35ms CodeModel.GetById 10ms RepoModel.GetById 1ms app.codeStats 0ms

/hphp/test/quick/boxed-array-isset.php

http://github.com/facebook/hiphop-php
PHP | 13 lines | 11 code | 2 blank | 0 comment | 0 complexity | bfab51d995752c097db0d140398921bf 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. function main($o, inout $x) {
  3. $x = $o->prop;
  4. return isset($x[23]) ? true : false;
  5. }
  6. <<__EntryPoint>> function main_entry(): void {
  7. $o = new stdclass;
  8. $o->prop = darray[23 => 'hi'];
  9. $y = null;
  10. echo main($o, inout $y) ? "true\n" : "false\n";
  11. }