3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo{ function method($a){ } } class Bar extends Foo{ function method(array $a){ } }
based on c0C7p

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

Output for Arrow functions
Warning: Declaration of Bar::method(array $a) should be compatible with Foo::method($a) in /in/fSIbS on line 11
Output for Object typehint
Warning: Declaration of Bar::method(array $a) should be compatible with Foo::method($a) in /in/fSIbS on line 11

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