3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public function render(?string $test = null) { } } class Bar extends Foo { public function render(string $test = null) { } }
Output for 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
Deprecated: Bar::render(): Implicitly marking parameter $test as nullable is deprecated, the explicit nullable type must be used instead in /in/TastR on line 11
Output for 8.1.32 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30

preferences:
55.48 ms | 838 KiB | 4 Q