PHP
PHP7

PHP 簡単なメモリの使い果たし方

class A
{
    public function test()
    {
        $this->test();
    }
}

$a = new A();
$a->test();

これでPHP Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 262144 bytes)になるよ