3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo extends Exception { public function __construct() { $this->code = 123; } } try { throw new Foo; } catch (Exception $e) { var_dump($e->code === 123); }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
166.05 ms | 3322 KiB | 11 Q