3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_exception_handler(function (Throwable $exception) { var_dump($exception->getTrace()); }); class Foo { private $foo; public function __toString() { return $this->foo; } } sprintf('%s', new Foo());

preferences:
58.43 ms | 402 KiB | 5 Q