xref: /PHP-7.1/Zend/tests/objects_023.phpt (revision 7af945e2)
1--TEST--
2Creating instances dynamically
3--FILE--
4<?php
5
6$arr = array(new stdClass, 'stdClass');
7
8new $arr[0]();
9new $arr[1]();
10
11print "ok\n";
12
13?>
14--EXPECT--
15ok
16