3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); error_reporting(E_ALL); interface tester { public function test(?string $argument = null): void; } class testerImplementation implements tester { public function test(string $argument = null): void {} }

preferences:
63.23 ms | 486 KiB | 6 Q