<?php class Page { function __destruct() { echo "__destruct methor invokes<br>"; } } $page = new Page(); ?>