3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait ATrait { public function __isset(string $name): bool { return false; } } trait BTrait { public function __isset(string $name): bool { return false; } } trait CTrait { use BTrait { __isset as private __b_isset; } } class Model { use ATrait; use CTrait; // __isset aliased and implemented in ATrait }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Trait method CTrait::__isset has not been applied as Model::__isset, because of collision with ATrait::__isset in /in/cUp5N on line 23
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:
117.31 ms | 405 KiB | 5 Q