3v4l.org

run code in 300+ PHP versions simultaneously
<?php Interface foo { public function bar($argument); } class A implements foo { public function bar(string $argument) { return $argument; } } $a = new A(); var_dump($a->bar('foo'));

preferences:
32.18 ms | 404 KiB | 5 Q