3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo extends Exception { protected $code = 100; protected $message = 'Hello'; protected $line = 45; protected $file = '/path/to/file.php'; } try { throw new Foo(); } catch (Foo $e) { var_dump($e); }

preferences:
56.67 ms | 402 KiB | 5 Q