1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 11:13:36 +02:00
Files
archived-php-src/Zend/tests/constexpr/new_anon_class.phpt
T
2023-05-24 20:17:31 +02:00

14 lines
146 B
PHP

--TEST--
New with anonymous class works
--FILE--
<?php
static $x = new class {};
var_dump($x);
?>
--EXPECT--
object(class@anonymous)#1 (0) {
}