3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A {} interface B {} interface C {} interface AB extends A, B {} interface AC extends A, C {} interface BC extends B, C {} interface ABC extends AB, AC, BC {} $o = new class implements ABC {}; var_dump($o instanceof A); var_dump($o instanceof B); var_dump($o instanceof C); var_dump($o instanceof AB); var_dump($o instanceof ABC);
Output for git.master, git.master_jit, rfc.property-hooks
bool(true) bool(true) bool(true) bool(true) bool(true)

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:
55.47 ms | 1662 KiB | 4 Q