/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

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