
<?php
class base {
   function __construct() {
      echo __METHOD__ . "\n";
   }
   
   function __destruct() {
      echo __METHOD__ . "\n";
   }
}

class derived extends base {
}

$obj = new derived;

unset($obj);

echo 'Done';
?>
