3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface a { public function aa(); } interface b extends a { public function bb(); } class aa implements a { public function aa() { echo 'aa'; } } class bb implements b { public function aa() { echo 'aa'; } public function bb() { echo 'bb'; } } echo 'aa' . "\n"; echo 'aa:aa' . "\n"; $aa = new aa(); $aa->aa(); echo "\n\n"; echo 'bb' . "\n"; $bb = new bb(); echo 'bb:aa' . "\n"; $bb->aa(); echo 'bb:bb' . "\n"; $bb->bb();
Output for git.master, git.master_jit, rfc.property-hooks
aa aa:aa aa bb bb:aa aabb:bb bb

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