/hphp/test/slow/dynamic_variables/1157.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
- <?php
- function f() {
- return true;
- }
- function test() {
- $a = 100;
- if (compact('a', 'b')) {
- }
- var_dump(compact('a', 'b'));
- if (f()) $b = 1;
- else $b = new Exception();
- return $b;
- }
- test();