3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface One { function callme(string $data): void; } interface Two { function callme(int $data): void; } class C implements One, Two { /** @param mixed $_p */ public function callme($_p): void {} } function oneone(One $one): void { $one->callme("data"); } function twotwo(Two $two): void { $two->callme(42); } $c = new C; oneone($c); twotwo($c);
Output for git.master, git.master_jit, rfc.property-hooks

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.2 ms | 1472 KiB | 4 Q