PageRenderTime 55ms CodeModel.GetById 27ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/slow/dynamic_variables/1158.php

http://github.com/facebook/hiphop-php
PHP | 10 lines | 9 code | 1 blank | 0 comment | 0 complexity | 0e06c73b1d171192e8d04f3fffaebeb2 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. <?php
  2. function f() {
  3. return 3;
  4. }
  5. function test($f) {
  6. $x = $f();
  7. return compact('x');
  8. }
  9. var_dump(test('f'));