xref: /PHP-7.3/Zend/tests/closure_028.phpt (revision 782352c5)
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