PageRenderTime 43ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/hphp/test/slow/dynamic_variables/1159.php

http://github.com/facebook/hiphop-php
PHP | 12 lines | 11 code | 1 blank | 0 comment | 2 complexity | fb5afc99aa9f647cecdf32b025a0426e 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 foo($a) {
  3. while ($a--) {
  4. if (!$a) {
  5. var_dump(compact('x', 'y'));
  6. }
  7. $x = $a;
  8. $y = $a * $a;
  9. }
  10. }
  11. foo(4);