3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function __toString(): void { } }
based on Dbe6G
Output for 8.0.0
Fatal error: Declaration of Test::__toString(): void must be compatible with Stringable::__toString(): string in /in/jIg7b on line 4
Process exited with code 255.
Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.26, 7.4.0 - 7.4.13