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