PageRenderTime 14ms CodeModel.GetById 11ms app.highlight 1ms RepoModel.GetById 1ms 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
 1<?php
 2
 3function foo($a) {
 4  while ($a--) {
 5    if (!$a) {
 6      var_dump(compact('x', 'y'));
 7    }
 8    $x = $a;
 9    $y = $a * $a;
10  }
11}
12foo(4);