3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait A { abstract function test(ArrayObject $a); function testA(){ $this->test(new ArrayObject); } } trait B { function test(SplFixedArray $b){ echo "hello B"; } function testB(){ $this->test(new SplFixedArray); } } class C { use A, B; }
Output for rfc.property-hooks, git.master, git.master_jit
Fatal error: Declaration of B::test(SplFixedArray $b) must be compatible with A::test(ArrayObject $a) in /in/OukrF on line 11
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
68.55 ms | 2253 KiB | 4 Q