3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function __destruct() { throw new Exception('destruct A'); } } class B { private $m; public function __construct() { $this->m = new A(); } public function __destruct() { parent::__destruct(); throw new Exception('destruct B'); } } try { $b = new B(); } catch (Exception $e) { echo $e->getMessage(); } ?>

This is an error 404

There are `0` results


preferences:
150.53 ms | 1399 KiB | 7 Q