3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface Foo { public function resolveReferences(?string $context = null); } class Bar implements Foo { public function resolveReferences(string $context = null) { } }
Output for 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
Deprecated: Bar::resolveReferences(): Implicitly marking parameter $context as nullable is deprecated, the explicit nullable type must be used instead in /in/1Wcnh on line 8
Output for 8.1.32 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30

preferences:
61.37 ms | 839 KiB | 4 Q