3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait ezcReflectionReturnInfo { static function getReturnType() { echo 't'; } } class ezcReflectionMethod { use ezcReflectionReturnInfo; private $a; function getReturnType() { $this->a = 'a'; echo $this->a; } } $e = new ezcReflectionMethod(); ezcReflectionMethod::getReturnType();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
203.86 ms | 2836 KiB | 8 Q