3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class MaClasse { public function demo(): string { return 'Closed!'; } } final class Ma2ndClasse extends MaClasse { public function demo(): string { return 'Opened at last!'; } } $objet = (new Ma2ndClasse())->demo();
Output for 7.1.25 - 7.3.2