3v4l.org

run code in 300+ PHP versions simultaneously
<?hh echo "1..2\n"; interface Bonk<T> { } class Foo<X> { function beep() { echo "ok 1\n"; } } class Bar<T> extends Foo<Bar<Foo<T>>> implements Bonk<T> { } class :bork { attribute Bar<String> foo; } function nest(Foo<B<C<D<E<F<G<H<I<J<B>,C>>,D>>>,E>>>> $bonk) { echo "ok 2\n"; } Bar::beep(); nest(new Foo());
Output for git.master, git.master_jit, rfc.property-hooks
<?hh echo "1..2\n"; interface Bonk<T> { } class Foo<X> { function beep() { echo "ok 1\n"; } } class Bar<T> extends Foo<Bar<Foo<T>>> implements Bonk<T> { } class :bork { attribute Bar<String> foo; } function nest(Foo<B<C<D<E<F<G<H<I<J<B>,C>>,D>>>,E>>>> $bonk) { echo "ok 2\n"; } Bar::beep(); nest(new Foo());

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:
40.95 ms | 401 KiB | 8 Q