/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

  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'));