3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface IModel { } abstract class AModel implements IModel { } abstract class ARepository { public function delete(IModel $model){ } } interface IAttachment extends IModel { } class Attachment extends AModel implements IAttachment { } class AttachmentRepository extends ARepository { public function delete(IAttachment $model) { } } $attachment = new Attachment(); $attachmentRepository = new AttachmentRepository(); $attachmentRepository->delete($attachment);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Declaration of AttachmentRepository::delete(IAttachment $model) must be compatible with ARepository::delete(IModel $model) in /in/liVF1 on line 26
Process exited with code 255.

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