1--TEST--
2Test is_iterable() function
3--FILE--
4<?php
5
6function gen() {
7    yield;
8}
9
10var_dump(is_iterable([1, 2, 3]));
11var_dump(is_iterable(new ArrayIterator([1, 2, 3])));
12var_dump(is_iterable(gen()));
13var_dump(is_iterable(1));
14var_dump(is_iterable(3.14));
15var_dump(is_iterable(new stdClass()));
16
17?>
18--EXPECT--
19bool(true)
20bool(true)
21bool(true)
22bool(false)
23bool(false)
24bool(false)
25