3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait theTrait { protected function test($a, $x=[]) { echo $a; } } class theClass { use theTrait; } class theExtend extends theClass { protected function test($a) { echo 'prefixed: ' . $a; } } $x = new theClass;

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
158.95 ms | 2030 KiB | 8 Q