3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class AbstractSimpleValueMapper { abstract protected function generateEndpointFromQuery(?stdClass $query = null): string; } class Test extends AbstractSimpleValueMapper { protected function generateEndpointFromQuery(stdClass $query = null): string { } }
Output for 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
Deprecated: Test::generateEndpointFromQuery(): Implicitly marking parameter $query as nullable is deprecated, the explicit nullable type must be used instead in /in/uLjCK on line 10
Output for 8.1.34, 8.2.27 - 8.2.30, 8.3.0 - 8.3.30

preferences:
57.57 ms | 407 KiB | 5 Q