3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); function test(int $i = null): void { } test(null); test(32);
Output for 8.4.1 - 8.4.14
Deprecated: test(): Implicitly marking parameter $i as nullable is deprecated, the explicit nullable type must be used instead in /in/2JIXi on line 5
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.27

preferences:
94.67 ms | 407 KiB | 5 Q