- Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.25, 7.4.0 - 7.4.13, 8.0.0
- Fatal error: A void function must not return a value in /in/G00Yc on line 8
Process exited with code 255.
<?php
class Foo
{
public function __construct(): void
{
return "bar";
}
}
$foo = new Foo();
var_dump($foo);