3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FindByNameInterface { public function getFindAllByNameSelect(); } interface FetchableInterface { public function fetchAll(Zend_Db_Select $select); } interface FetchableByNameInterface extends FetchableInterface, FindByNameInterface { } class OurGateway implements FetchableByNameInterface { public function fetchAll(Zend_Db_Select $select) {} public function getFindAllByNameSelect() {} } class SomeMapper { protected $gateway; public function __construct(FetchableByNameInterface $someGateway) { $this->gateway = $someGateway; } } new SomeMapper(new OurGateway);
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:
46.66 ms | 401 KiB | 8 Q