3v4l.org

run code in 300+ PHP versions simultaneously
<?php $o = new class { public $val = 'I do get seen!'; public function fun() { // use `this` to reference the current object we are in! return $this->val; } }; var_dump($o->fun());

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
154.03 ms | 2562 KiB | 11 Q