xref: /PHP-7.1/Zend/tests/closure_025.phpt (revision e0625942)
1--TEST--
2Closure 025: Using closure in create_function()
3--FILE--
4<?php
5
6$a = create_function('$x', 'return function($y) use ($x) { return $x * $y; };');
7
8var_dump($a(2)->__invoke(4));
9
10?>
11--EXPECT--
12int(8)
13