3v4l.org

run code in 300+ PHP versions simultaneously
<?php class DummyClass {private $value = 1;} // Before PHP 7 $getValueCallBack = function() {return $this->value;}; $getValue = $getValueCallBack->bindTo(new DummyClass, 'DummyClass'); echo $getValue(); // From PHP 7 $getvalue = function() {return $this->value;}; echo $getValue->call(new DummyClass);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
154.63 ms | 2993 KiB | 10 Q