<?php class TestClass { public function __construct() { return new stdClass(); } public function __destruct() { echo 'Destructor for ', __CLASS__, PHP_EOL; } } $o = new TestClass(20); var_dump($o);
You have javascript disabled. You will not be able to edit any code.