3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Sellercenter\Modules\Cli\Services\SyncAgent\Task { interface DataWriterInterface {} class DataWriterAbstract implements DataWriterInterface {} } namespace Sellercenter\Modules\Cli\Services\SyncAgent\Task\Catalog\Categories { use Sellercenter\Modules\Cli\Services\SyncAgent\Task\DataWriterAbstract; use Sellercenter\Modules\Cli\Services\SyncAgent\Task\DataWriterInterface; class DataWriter extends DataWriterAbstract {} interface PostProcessorInterface { public function process(DataWriterInterface $dataWriter); } class PostProcessor implements PostProcessorInterface { public function process(DataWriterInterface $dataWriter) { } } class PostProcessor2 implements PostProcessorInterface { public function process(DataWriter $dataWriter) { } } }
based on 2FdSS
Output for 7.0.0 - 7.2.0
Fatal error: Declaration of Sellercenter\Modules\Cli\Services\SyncAgent\Task\Catalog\Categories\PostProcessor2::process(Sellercenter\Modules\Cli\Services\SyncAgent\Task\Catalog\Categories\DataWriter $dataWriter) must be compatible with Sellercenter\Modules\Cli\Services\SyncAgent\Task\Catalog\Categories\PostProcessorInterface::process(Sellercenter\Modules\Cli\Services\SyncAgent\Task\DataWriterInterface $dataWriter) in /in/mUF6f on line 28
Process exited with code 255.
Output for 5.4.2 - 5.6.28
Fatal error: Declaration of Sellercenter\Modules\Cli\Services\SyncAgent\Task\Catalog\Categories\PostProcessor2::process() must be compatible with Sellercenter\Modules\Cli\Services\SyncAgent\Task\Catalog\Categories\PostProcessorInterface::process(Sellercenter\Modules\Cli\Services\SyncAgent\Task\DataWriterInterface $dataWriter) in /in/mUF6f on line 28
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Fatal error: Declaration of Sellercenter\Modules\Cli\Services\SyncAgent\Task\Catalog\Categories\PostProcessor2::process() must be compatible with that of Sellercenter\Modules\Cli\Services\SyncAgent\Task\Catalog\Categories\PostProcessorInterface::process() in /in/mUF6f on line 28
Process exited with code 255.