3v4l.org

run code in 200+ PHP versions simultaneously
<?php class YourFavoriteFrameworkClass28 { public function process($name) { } } class YourFavoriteFrameworkClass44 { public function process(string $name) { } } class Implementer extends YourFavoriteFrameworkClass44 { public function process($name, $newArgument) { } } $app = new Implementer();
based on GN1PJ
Output for 7.4.0 - 7.4.6
Warning: Declaration of Implementer::process($name, $newArgument) should be compatible with YourFavoriteFrameworkClass44::process(string $name) in /in/Znrnq on line 20
Output for 7.2.0 - 7.3.13
Warning: Declaration of Implementer::process($name, $newArgument) should be compatible with YourFavoriteFrameworkClass44::process(string $name) in /in/Znrnq on line 23