PageRenderTime 38ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/slow/dynamic_variables/1157.php

http://github.com/facebook/hiphop-php
PHP | 15 lines | 14 code | 1 blank | 0 comment | 3 complexity | 4fa61229d61a573e9a1e5fafa00d5d32 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 true;
  4. }
  5. function test() {
  6. $a = 100;
  7. if (compact('a', 'b')) {
  8. }
  9. var_dump(compact('a', 'b'));
  10. if (f()) $b = 1;
  11. else $b = new Exception();
  12. return $b;
  13. }
  14. test();