3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface HTMLRestrictions {} interface Test { public function mapCKEditor4ToolbarButtonToCKEditor5ToolbarItem(string $cke4_button, HTMLRestrictions $text_format_html_restrictions = NULL): ?string; } class PreExisting implements Test { public function mapCKEditor4ToolbarButtonToCKEditor5ToolbarItem(string $cke4_button): ?string { return NULL; } } class NewlyPossible implements Test { public function mapCKEditor4ToolbarButtonToCKEditor5ToolbarItem(string $cke4_button, HTMLRestrictions $text_format_html_restrictions = NULL): ?string { return NULL; } }
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
Fatal error: Declaration of PreExisting::mapCKEditor4ToolbarButtonToCKEditor5ToolbarItem(string $cke4_button): ?string must be compatible with Test::mapCKEditor4ToolbarButtonToCKEditor5ToolbarItem(string $cke4_button, ?HTMLRestrictions $text_format_html_restrictions = null): ?string in /in/trPZF on line 10
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Fatal error: Declaration of PreExisting::mapCKEditor4ToolbarButtonToCKEditor5ToolbarItem(string $cke4_button): ?string must be compatible with Test::mapCKEditor4ToolbarButtonToCKEditor5ToolbarItem(string $cke4_button, ?HTMLRestrictions $text_format_html_restrictions = NULL): ?string in /in/trPZF on line 10
Process exited with code 255.

preferences:
130.56 ms | 401 KiB | 122 Q