<?php class A { function __destruct() { echo "a dtor\n"; } } class B { function __destruct() { echo "b dtor\n"; } function doSomething() { echo "b still alive\n"; } } $a = new A; $b = new B;
You have javascript disabled. You will not be able to edit any code.