<?php
declare(strict_types=1);
interface Fooable
{
public function bar();
}
class Foo implements Fooable
{
public function bar() : string
{
return 'bar';
}
}
echo (new Foo())->bar();
Warning: Unsupported declare 'strict_types' in /in/BHlVW on line 3
Parse error: syntax error, unexpected ':', expecting ';' or '{' in /in/BHlVW on line 12
Process exited with code 255.