<?php
class Foo extends ArrayObject {
function __construct() {}
}
new Foo();
$refl = new ReflectionClass('Foo');
var_dump($refl->newInstanceWithoutConstructor());
Fatal error: Uncaught exception 'ReflectionException' with message 'Class Foo is an internal class that cannot be instantiated without invoking its constructor' in /in/DhaSD:10
Stack trace:
#0 /in/DhaSD(10): ReflectionClass->newInstanceWithoutConstructor()
#1 {main}
thrown in /in/DhaSD on line 10
Process exited with code 255.