3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait B { function test(SplFixedArray $b){ echo "hello B"; } function testB(){ $this->test(new SplFixedArray); } } class C { use B; function test(ArrayObject $c){ echo "hello C"; } } (new C)->testB();

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
152.71 ms | 2718 KiB | 8 Q