3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* * ExampleException.php * */ namespace app\exception; class ExampleException extends \Exception { public function __construct($message = null) { var_dump($message); var_dump(get_class($this)); var_dump(json_encode($this)); //if i extend exception the following line results in infinite loop var_dump($this); die; } } throw new \app\exception\ExampleException('why it do like that');

preferences:
56.26 ms | 402 KiB | 5 Q