3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Bozok\Component\AidKit\Contract\AidKit; interface Collection extends \ArrayAccess, \Countable, \Iterator { /** * - * * @param mixed $items * * @return array */ public static function make($items = []); } class Cla implements Collection { public function __construct($items) { print_r($items); } public static function make($items = 1) { return new static($items); } } echo Cla::make(2+5+6+7+7+78+8);
based on 06Io0
Output for 7.0.0 - 7.2.0
Fatal error: Class Bozok\Component\AidKit\Contract\AidKit\Cla contains 10 abstract methods and must therefore be declared abstract or implement the remaining methods (ArrayAccess::offsetExists, ArrayAccess::offsetGet, ArrayAccess::offsetSet, ...) in /in/qXcuL on line 20
Process exited with code 255.
Output for 5.4.11 - 5.6.28
Fatal error: Class Bozok\Component\AidKit\Contract\AidKit\Cla contains 10 abstract methods and must therefore be declared abstract or implement the remaining methods (ArrayAccess::offsetExists, ArrayAccess::offsetGet, ArrayAccess::offsetSet, ...) in /in/qXcuL on line 30
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/qXcuL on line 17
Process exited with code 255.