3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T1 { public function func() { echo "From T1\n"; } } trait T2 { public function func() { echo "From T2\n"; } } class Bar { public function func() { echo "From Bar\n"; } use T1, T2 { func as renamedFunc; } } $b = new Bar(); $b->renamedFunc();
Output for git.master_jit, git.master, rfc.property-hooks
Fatal error: An alias was defined for method func(), which exists in both T1 and T2. Use T1::func or T2::func to resolve the ambiguity in /in/6h3PM on line 15
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:
89.49 ms | 405 KiB | 5 Q