3v4l.org

run code in 300+ 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.14
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.2.0 - 8.2.29, 8.3.0 - 8.3.27

preferences:
69.37 ms | 407 KiB | 5 Q