PageRenderTime 42ms CodeModel.GetById 19ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/slow/ext_math/floor_ceil.php

http://github.com/facebook/hiphop-php
PHP | 13 lines | 10 code | 3 blank | 0 comment | 0 complexity | a526400c2b95794d6823ab124a45de54 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 x($y, $k) {
  3. var_dump($k($y));
  4. var_dump(floor($y));
  5. }
  6. <<__EntryPoint>>
  7. function main_floor_ceil() {
  8. x(varray[1,2,3,4], 'floor');
  9. x(varray[1,2,3,4], 'ceil');
  10. }