3v4l.org

run code in 200+ PHP versions simultaneously
<?php class AbstractTestCase { protected function setUp(): void { } } class MyTestCase extends AbstractTestCase { protected function setUp() { } }
Output for 7.4.0alpha1 - 7.4.0rc4
Fatal error: Declaration of MyTestCase::setUp() must be compatible with AbstractTestCase::setUp(): void in /in/1bD6H on line 12
Process exited with code 255.
Output for 7.1.25 - 7.3.10
Fatal error: Declaration of MyTestCase::setUp() must be compatible with AbstractTestCase::setUp(): void in /in/1bD6H on line 15
Process exited with code 255.