/hphp/test/slow/dynamic_variables/1158.php
PHP | 10 lines | 9 code | 1 blank | 0 comment | 0 complexity | 0e06c73b1d171192e8d04f3fffaebeb2 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
- <?php
- function f() {
- return 3;
- }
- function test($f) {
- $x = $f();
- return compact('x');
- }
- var_dump(test('f'));