3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FooInterface { public function render(?string $test = null); } class Bar implements FooInterface { 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/s8Mv1 on line 8
Output for 8.1.32 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30

preferences:
59.67 ms | 838 KiB | 4 Q