3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class MyObjectStorage extends SplObjectStorage { public function addAll(SplObjectStorage $object) {} } $o = new MyObjectStorage(); $o2 = new MyObjectStorage(); $o->addAll($o2);
Output for 7.0.0 - 7.2.0
Warning: Declaration of MyObjectStorage::addAll(SplObjectStorage $object) should be compatible with SplObjectStorage::addAll($object) in /in/7kdDT on line 6
Output for 5.4.2 - 5.6.28
Strict Standards: Declaration of MyObjectStorage::addAll() should be compatible with SplObjectStorage::addAll($object) in /in/7kdDT on line 6
Output for 5.3.18 - 5.3.29
Strict Standards: Declaration of MyObjectStorage::addAll() should be compatible with that of SplObjectStorage::addAll() in /in/7kdDT on line 6