3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = new Modifier("aa"); abstract class Css { abstract protected function parse($data); } abstract class CssElem extends Css { abstract protected function parse($data); } class Modifier extends CssElem { function __construct($data = null) { if( $data ) $this->parse ($data); } protected function parse($data) { print("aa"); } }
Output for 5.3.0 - 5.4.27
Fatal error: Can't inherit abstract function Css::parse() (previously declared abstract in CssElem) in /in/uVTs5 on line 12
Process exited with code 255.