3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface MyInterface { public function setValue($object, $value); } class MyObject { } class Component implements MyInterface { public function setValue(MyObject $object, string $value); }
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.6
Fatal error: Non-abstract method Component::setValue() must contain body in /in/UcYln on line 13
Process exited with code 255.

preferences:
177.72 ms | 1395 KiB | 35 Q