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 {} }
Output for 8.4.1 - 8.4.28, 8.5.0 - 8.5.13, 8.6.0
Deprecated: testerImplementation::test(): Implicitly marking parameter $argument as nullable is deprecated, the explicit nullable type must be used instead in /in/c4u1L on line 12
Output for 8.1.0 - 8.1.34, 8.2.0 - 8.2.36, 8.3.0 - 8.3.35

preferences:
18.73 ms | 1167 KiB | 6 Q