<?php $a = null; class A { public function __construct() { global $a; $a = $this; throw new Exception("what?"); } } try { $x = new A(); } catch(Exception $e) { } var_dump($a);
You have javascript disabled. You will not be able to edit any code.