3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface TotoInterface { public function test(); public function tata(); } abstract class AbstractToto implements TotoInterface { public function test() { echo 'test'; } public function tata() { echo $this->getTiti(); } abstract protected function getTiti(); } class Toto extends AbstractToto { public function tata() { echo 'tata'; } } $oto = new Toto();
based on MmGRj
Output for 7.0.30 - 7.3.0rc3
Fatal error: Class Toto contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (AbstractToto::getTiti) in /in/2NCCH on line 25
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught Error: Class Toto contains abstract method (getTiti) and must therefore be declared abstract or implement the remaining methods in /in/2NCCH:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.18.5 - 3.21.3
Fatal error: Uncaught Error: Class Toto contains abstract method (getTiti) and must therefore be declared abstract or implement the remaining methods in /in/2NCCH:25 Stack trace: #0 {main}
Process exited with code 255.
Output for 5.6.30
Fatal error: Class Toto contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (AbstractToto::getTiti) in /in/2NCCH on line 26
Process exited with code 255.