3v4l.org

run code in 500+ PHP versions simultaneously
<?php trait A { private $whatever; } class B { use A; private $whatever; } trait C { private string $whatever = ''; } class D { use C; private $whatever; }
Output for git.master, git.master_jit
Fatal error: D and C define the same property ($whatever) in the composition of D. However, the definition differs and is considered incompatible. Class was composed in /in/Zr2aL on line 17 Stack trace: #0 {main}
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:
54.12 ms | 528 KiB | 4 Q