xref: /PHP-8.1/Zend/tests/closure_028.phpt (revision f8d79582)
1--TEST--
2Closure 028: Trying to use lambda directly in foreach
3--FILE--
4<?php
5
6foreach (function(){ return 1; } as $y) {
7    var_dump($y);
8}
9
10print "ok\n";
11
12?>
13--EXPECT--
14ok
15