3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public function a() {} } class Bar extends Foo { public function a($i) {} } class Baz { public function a($i) {} } class Flubu extends Baz { public function a() {} }

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
Warning: Declaration of Bar::a($i) should be compatible with Foo::a() in /in/WtD03 on line 8 Warning: Declaration of Flubu::a() should be compatible with Baz::a($i) in /in/WtD03 on line 17

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